Click or drag to resize
UserInfo.IsAuthorizedPerResource Method (String, String, String, Boolean)
Returns true if given user is granted with specified permission.

Namespace: CMS.Membership
Assembly: CMS.Membership (in CMS.Membership.dll) Version: 9.0.0
Syntax
C#
public bool IsAuthorizedPerResource(
	string resourceName,
	string permissionName,
	string siteName,
	bool exceptionOnFailure
)

Parameters

resourceName
Type: System.String
Resource name
permissionName
Type: System.String
Permission name
siteName
Type: System.String
Site name
exceptionOnFailure
Type: System.Boolean
If true, PermissionCheckException is thrown whenever a permission check fails

Return Value

Type: Boolean

Implements

IUserInfo.IsAuthorizedPerResource(String, String, String, Boolean)
Exceptions
ExceptionCondition
PermissionCheckExceptionThrown when permission check fail and exception is allowed by exceptionOnFailure parameter.
See Also