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: 11.0.0
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