Click or drag to resize
CMSHttpContextGetCurrent Method
Check whether current context is available (always no matter ThrowExceptionWhenNull) and then optionally whether request and response are available.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 8.2.23
Syntax
C#
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: HttpContextBase
See Also