UserInfoIsInRole 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: 9.0.0
Syntax public virtual bool IsInRole(
string roleName,
string siteName,
bool checkGlobal,
bool checkMembership
)
Parameters
- roleName
- Type: SystemString
Role name to check - siteName
- Type: SystemString
Site name to check - checkGlobal
- Type: SystemBoolean
If true, global roles are checked - checkMembership
- Type: SystemBoolean
If true, membership roles are checked
Return Value
Type:
BooleanSee Also