RoleInfoProvider.GetAllRoles Method (Int32, Boolean, Boolean)Kentico 8.1 API Reference
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.0.0.0 (8.1.5347.20411)

Parameters

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

Return Value

Type: InfoDataSet<RoleInfo>
See Also