Click or drag to resize
UserInfoIsAuthorizedPerUIElement Method (Int32, String, Boolean)
Checks whether the user is authorized for given UI element of the specified resource, returns true if so.

Namespace: CMS.Membership
Assembly: CMS.Membership (in CMS.Membership.dll) Version: 11.0.0
Syntax
C#
public virtual bool IsAuthorizedPerUIElement(
	int resourceID,
	string elementName,
	bool siteAvailabilityRequired = false
)

Parameters

resourceID
Type: SystemInt32
Resource ID
elementName
Type: SystemString
UI element code name
siteAvailabilityRequired (Optional)
Type: SystemBoolean
Indicates if site availability of the corresponding resource (resource with name in format "cms.[ElementName]") is required. Takes effect only when corresponding resource exists

Return Value

Type: Boolean
See Also