Class Roles
- Namespace
- ToSic.Sxc.DataSources
- Assembly
- ToSic.Sxc.dll
Will get all (or just some) roles of the current site.
[PublicApi]
[VisualQuery(NiceName = "Roles (User Roles)", Icon = "account_circle", UiHint = "Roles in this site", HelpLink = "https://go.2sxc.org/ds-roles", NameId = "eee54266-d7ad-4f5e-9422-2d00c8f93b45", Type = DataSourceType.Source, ConfigurationType = "1b9fd9d1-dde0-40ad-bb66-5cd7f30de18d")]
public class Roles : CustomDataSourceAdvanced, IDataSource, IAppIdentity, IZoneIdentity, IAppIdentityLight, ICacheKey, ICacheExpiring, ITimestamped, IHasLog, IDataSourceLinkable
- Inheritance
-
Roles
- Implements
- Inherited Members
Properties
ExcludeRoleIds
Optional (single value or comma-separated integers) filter, exclude roles based on roleId
[Configuration]
public string ExcludeRoleIds { get; set; }
Property Value
RoleIds
Optional (single value or comma-separated integers) filter, include roles based on roleId
[Configuration]
public string RoleIds { get; set; }