Click or drag to resize
UserInfoIsAuthorizedPerClassName Method (String, String, String, Boolean)
Checks whether the user is authorized for given class name and permission, returns true if so.

Namespace: CMS.Membership
Assembly: CMS.Membership (in CMS.Membership.dll) Version: 12.0.0
Syntax
C#
public bool IsAuthorizedPerClassName(
	string className,
	string permissionName,
	string siteName,
	bool exceptionOnFailure = false
)

Parameters

className
Type: SystemString
Class name
permissionName
Type: SystemString
Permission name to check
siteName
Type: SystemString
Site name
exceptionOnFailure (Optional)
Type: SystemBoolean
If true, PermissionCheckException is thrown whenever a permission check fails

Return Value

Type: Boolean

Implements

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