Click or drag to resize
FilterStateGetBoolean Method
Retrieves a boolean value from the filter state.

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

Parameters

name
Type: SystemString
The name associated with the value to retrieve.
defaultValue (Optional)
Type: SystemBoolean
The default value that will be returned if state doesn't contain value for specified name.

Return Value

Type: Boolean
The boolean value associated with the specified name.
See Also