Table of Contents

Class Sites

Namespace
ToSic.Sxc.DataSources
Assembly
ToSic.Sxc.dll

Deliver a list of sites from the Oqtane

[PublicApi]
[VisualQuery(ConfigurationType = "", NameId = "a11c28fb-7d8d-40a2-a22c-50beaa019e41", HelpLink = "https://go.2sxc.org/ds-sites", Icon = "public", NiceName = "Sites", Type = DataSourceType.Source, UiHint = "Sites in this system")]
public class Sites : CustomDataSource, IDataSource, IAppIdentity, IZoneIdentity, IAppIdentityLight, ICacheKey, ICacheExpiring, ITimestamped, IHasLog, IDataSourceLinkable
Inheritance
object
ServiceBase
Sites
Implements
Inherited Members

Remarks

You can cast the result to ISiteModel for typed use in your code. To figure out the returned properties, best also consult the ISiteModel.

As of now there are no parameters to set.

History

  • Not sure when it was first created, probably early 2023 with the name Roles, and not officially communicated.
  • Model ISiteModel created in v19.01 and officially released