RoleInfoProviderGetRoleInfo Method (String, String, Boolean) |
Returns the role info object with specified role name.
Namespace: CMS.MembershipAssembly: CMS.Membership (in CMS.Membership.dll) Version: 13.0.131
Syntax public static RoleInfo GetRoleInfo(
string roleName,
string siteName,
bool globalIfNoSite
)
Parameters
- roleName
- Type: SystemString
Role name to find. Role name with dots is considered as global. - siteName
- Type: SystemString
Role's site name. - globalIfNoSite
- Type: SystemBoolean
If true, global role is returned, if no site role is found
Return Value
Type:
RoleInfoSee Also