Click or drag to resize
UserInfoIsAuthorizedPerUIElement Method (String, 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: 10.0.0
Syntax
C#
public virtual bool IsAuthorizedPerUIElement(
	string resourceName,
	string elementName,
	bool siteAvailabilityRequired
)

Parameters

resourceName
Type: SystemString
Resource code name
elementName
Type: SystemString
UI element code name
siteAvailabilityRequired
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