UserInfoIsInRole Method (String, String) |
Returns true if the user is member of the specified role on the specified site or member of global role.
Namespace: CMS.MembershipAssembly: CMS.Membership (in CMS.Membership.dll) Version: 8.2.23
Syntax public virtual bool IsInRole(
string roleName,
string siteName
)
Parameters
- roleName
- Type: SystemString
Role name to check - siteName
- Type: SystemString
Site name to check
Return Value
Type:
BooleanSee Also