UserInfoIsInRole Method (String, String) |
Returns true if the user is a member of the role in context of the specified site.
Namespace: CMS.MembershipAssembly: CMS.Membership (in CMS.Membership.dll) Version: 12.0.0
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:
BooleanRemarks The check also accounts for membership roles and global roles.
See Also