Click or drag to resize
RoleInfoProviderGetAllRoles Method (Int32, Boolean, Boolean)
Returns DataSet with roles of given site (if siteId > 0) with option to display GroupRoles.

Namespace: CMS.Membership
Assembly: CMS.Membership (in CMS.Membership.dll) Version: 8.2.23
Syntax
C#
public static InfoDataSet<RoleInfo> GetAllRoles(
	int siteId,
	bool includingGroups,
	bool includingGeneric
)

Parameters

siteId
Type: SystemInt32
SiteID of site which roles we want to return
includingGroups
Type: SystemBoolean
If set to true then GroupRoles are also returned in DataSet
includingGeneric
Type: SystemBoolean
If set to true then Generic roles are also returned in DataSet

Return Value

Type: InfoDataSetRoleInfo
See Also