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

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 8.2.23
Syntax
C#
public T GetValue<T>(
	string name,
	T defaultValue = null
)

Parameters

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

Type Parameters

T
The type of the value to retrieve.

Return Value

Type: T
The value associated with the specified name, if found, otherwise the default value.
See Also