Click or drag to resize
UIContextHelperCheckElementAccess Method
Checks permission and access condition for single UI element. If element's ElementCheckModuleReadPermission property and automaticReadCheck are set, read permission for element's module is also checked.

Namespace: CMS.PortalEngine
Assembly: CMS.PortalEngine (in CMS.PortalEngine.dll) Version: 9.0.0
Syntax
C#
public static ElementAccessCheckResult CheckElementAccess(
	UIElementInfo element,
	MacroResolver resolver = null,
	bool automaticReadCheck = true
)

Parameters

element
Type: CMS.ModulesUIElementInfo
Element info
resolver (Optional)
Type: CMS.MacroEngineMacroResolver
Macro resolver
automaticReadCheck (Optional)
Type: SystemBoolean
Indicates whether read module permission should be checked. Has no effect when element's ElementCheckModuleReadPermission property is false.

Return Value

Type: ElementAccessCheckResult
See Also