Click or drag to resize
CMSAbstractUIWebpartGetStringContextValue Method
Returns string property value. If value is empty, try to get it from UI context.

Namespace: CMS.UIControls
Assembly: CMS.UIControls (in CMS.UIControls.dll) Version: 11.0.0
Syntax
C#
protected string GetStringContextValue(
	string name,
	string defaultValue = "",
	bool useSecure = false,
	bool avoidInjection = false
)

Parameters

name
Type: SystemString
Property name
defaultValue (Optional)
Type: SystemString
Default value for no items found
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)
avoidInjection (Optional)
Type: SystemBoolean
If true, the resolving of the macros should avoid SQL injection (escapes the apostrophes in output).

Return Value

Type: String
See Also