FilterStateGetValueT Method |
Retrieves a value from the filter state.
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 10.0.0
Syntax 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:
TThe value associated with the specified name, if found, otherwise the default value.
See Also