Class ContentTypes
A DataSource that all content-types of an app.
Inheritance
System.Object
ToSic.Lib.Services.ServiceBase
ToSic.Lib.Services.ServiceBase<ToSic.Eav.DataSource.DataSourceBase.MyServices>
ToSic.Eav.DataSource.CustomDataSourceAdvanced
ContentTypes
Implements
Inherited Members
Namespace: ToSic.Eav.DataSources.Sys
Assembly: ToSic.Eav.Apps.dll
Syntax
[InternalApi_DoNotUse_MayChangeWithoutNotice]
[VisualQuery(NiceName = "Content Types", UiHint = "Types of an App", Icon = "dns", Type = DataSourceType.System, NameId = "ToSic.Eav.DataSources.System.ContentTypes, ToSic.Eav.Apps", Audience = Audience.Advanced, DynamicOut = false, ConfigurationType = "37b25044-29bb-4c78-85e4-7b89f0abaa2c", NameIds = new string[]{"ToSic.Eav.DataSources.System.ContentTypes, ToSic.Eav.Apps", "ToSic.Eav.DataSources.ContentTypes, ToSic.Eav.Apps"}, HelpLink = "https://github.com/2sic/2sxc/wiki/DotNet-DataSource-ContentTypes")]
public sealed class ContentTypes : CustomDataSource, IDataSource, IAppIdentity, IZoneIdentity, IAppIdentityLight, ICacheInfo, ICacheKey, ICacheExpiring, ITimestamped, ICanPurgeListCache, IHasLog, IDataTarget, IAppIdentitySync, IDataSourceLinkable
Remarks
- New in v11.20
- Changed in v15.05 to use the immutable convention
Properties
| Improve this Doc View SourceOfAppId
The app id
Declaration
[Configuration(Field = "AppId")]
public int OfAppId { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Scope
The scope to get the content types of - normally it's only the default scope
Declaration
[Configuration(Fallback = "Default")]
public string Scope { get; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
- Renamed to
Scope
in v15, previously was calledOfScope