CMSAbstractUIWebpartGetBoolContextValue Method |
Returns bool property value. If property is not set, returns value from the UI context with the same name.
Namespace: CMS.UIControlsAssembly: CMS.UIControls (in CMS.UIControls.dll) Version: 10.0.0
Syntax protected bool GetBoolContextValue(
string name,
bool defaultValue,
bool useSecure = false
)
Parameters
- name
- Type: SystemString
Property name or UIContext key - defaultValue
- Type: SystemBoolean
Default value for empty properties - useSecure (Optional)
- Type: SystemBoolean
If true, secure mode is used for getting property (value is not get from query string when not found in collection)
Return Value
Type:
BooleanSee Also