Click or drag to resize
RoleInfoProviderGetRoleInfo Method (String, String, Boolean)
Returns the role info object with specified role name.

Namespace: CMS.Membership
Assembly: CMS.Membership (in CMS.Membership.dll) Version: 10.0.0
Syntax
C#
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: RoleInfo
See Also