UserInfoProviderIsUserInRole Method |
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 static bool IsUserInRole(
string userName,
string roleName,
string siteName
)
Parameters
- userName
- Type: SystemString
User name - roleName
- Type: SystemString
Role name - siteName
- Type: SystemString
Site name
Return Value
Type:
BooleanRemarks The check also accounts for membership roles and global roles.
See Also