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

Namespace: CMS.PortalEngine
Assembly: CMS.PortalEngine (in CMS.PortalEngine.dll) Version: 8.2.23
Syntax
C#
public static ElementAccessCheckResult CheckUIElementAccessHierarchical(
	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.
See Also