CMSRoleProviderIsUserInRole Method |
Returns true if the user is a member of the role in context of the current site.
Namespace: CMS.MembershipProviderAssembly: CMS.MembershipProvider (in CMS.MembershipProvider.dll) Version: 13.0.131
Syntax public override bool IsUserInRole(
string username,
string roleName
)
Parameters
- username
- Type: SystemString
User name - roleName
- Type: SystemString
Role name
Return Value
Type:
BooleanRemarks The check also accounts for membership roles and global roles.
See Also