UserInfo.IsInRole Method (String, String, Boolean, Boolean) |
Returns true if the user is member of the specified role on the specified site (or on global role if check global is true).
Namespace: CMS.MembershipAssembly: CMS.Membership (in CMS.Membership.dll) Version: 10.0.0
Syntax public virtual bool IsInRole(
string roleName,
string siteName,
bool checkGlobal,
bool checkMembership
)
Parameters
- roleName
- Type: System.String
Role name to check - siteName
- Type: System.String
Site name to check - checkGlobal
- Type: System.Boolean
If true, global roles are checked - checkMembership
- Type: System.Boolean
If true, membership roles are checked
Return Value
Type:
BooleanSee Also