CMSHttpContextGetCurrent Method |
Check whether current context is available (always no matter ThrowExceptionWhenNull) and then optionally whether request and response are available.
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 11.0.0
Syntax public static HttpContextBase GetCurrent(
bool checkRequest,
bool checkResponse
)
Parameters
- checkRequest
- Type: SystemBoolean
Whether check Request property. - checkResponse
- Type: SystemBoolean
Whether check Response property.
Return Value
Type:
HttpContextBaseSee Also