UIContextHelper CheckUIElementAccessHierarchical Method Kentico 8.1 API Reference
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.0.0.0 (8.1.5347.20411)

Parameters

element
Type: CMS.Modules UIElementInfo
Starting UI element.
contextResolver (Optional)
Type: CMS.MacroEngine MacroResolver
The context resolver for macro in ElementAccessCondition.
rootElementId (Optional)
Type: OnlineSystem Int32
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