Click or drag to resize
QueryHelperGetBoolean Method
Returns the boolean representation of a query parameter or default value if parameter is not boolean.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 11.0.0
Syntax
C#
public static bool GetBoolean(
	string name,
	bool defaultValue
)

Parameters

name
Type: SystemString
Query parameter
defaultValue
Type: SystemBoolean
Default value

Return Value

Type: Boolean
See Also