Click or drag to resize
CMSPageCheckUIElementAccessHierarchicalInternal Method
Checks the permissions of all UI elements hierarchically starting with specified UI element (with optional custom root element).

Namespace: CMS.UIControls
Assembly: CMS.UIControls (in CMS.UIControls.dll) Version: 10.0.0
Syntax
C#
protected internal static ElementAccessCheckResult CheckUIElementAccessHierarchicalInternal(
	UIElementInfo element,
	MacroResolver contextResolver = null,
	int rootElementId = 0
)

Parameters

element
Type: CMS.ModulesUIElementInfo
Starting UI element.
contextResolver (Optional)
Type: CMS.MacroEngineMacroResolver
The context resolver for macro in ElementAccessCondition.
rootElementId (Optional)
Type: SystemInt32
The root element ID. If set the access is not checked over this element.

Return Value

Type: ElementAccessCheckResult
Returns ElementAccessCheckResult type with access check result. If element is null, returned ElementAccessCheckResult has status NoRestrictions and its UIElementInfo is null.
See Also