FilterStateGetSingle Method |
Retrieves a single-precision floating-point value from the filter state.
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 12.0.0
Syntax public float GetSingle(
string name,
float defaultValue = 0f
)
Parameters
- name
- Type: SystemString
The name associated with the value to retrieve. - defaultValue (Optional)
- Type: SystemSingle
The default value that will be returned if state doesn't contain value for specified name.
Return Value
Type:
SingleThe single-precision floating-point value associated with the specified name.
See Also