• Basics
  • Abyss
  • Web APIs
  • C# & Razor
  • .net API
  • JS & TS API

    Show / Hide Table of Contents

    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>
    DataSourceBase
    ToSic.Eav.DataSource.CustomDataSourceAdvanced
    CustomDataSource
    ContentTypes
    Implements
    IDataSource
    IAppIdentity
    IZoneIdentity
    IAppIdentityLight
    ICacheKey
    ICacheExpiring
    ITimestamped
    IHasLog
    IDataSourceLinkable
    Inherited Members
    CustomDataSource.Immutable
    CustomDataSource.GetDefault()
    CustomDataSource.ProvideOut(Func<Object>, String, String, Func<DataFactoryOptions>)
    DataSourceBase.AppId
    DataSourceBase.ZoneId
    DataSourceBase.Guid
    DataSourceBase.Error
    DataSourceBase.CacheTimestamp
    DataSourceBase.CacheChanged(Int64)
    DataSourceBase.Configuration
    DataSourceBase.Link
    DataSourceBase.In
    DataSourceBase.TryGetIn(String)
    DataSourceBase.TryGetOut(String)
    DataSourceBase.Out
    DataSourceBase.Item[String]
    DataSourceBase.GetStream(String, String, Boolean, Boolean)
    DataSourceBase.List
    DataSourceBase.Attach(IDataSource)
    DataSourceBase.Attach(String, IDataSource, String)
    DataSourceBase.Attach(String, IDataStream)
    DataSourceBase.ProvideOut(Func<IEnumerable<IEntity>>, String)
    DataSourceBase.ProvideOut(Func<IImmutableList<IEntity>>, String)
    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 Source

    OfAppId

    The app id

    Declaration
    [Configuration(Field = "AppId")]
    public int OfAppId { get; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    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 called OfScope

    Implements

    IDataSource
    IAppIdentity
    IZoneIdentity
    IAppIdentityLight
    ICacheKey
    ICacheExpiring
    ITimestamped
    IHasLog
    IDataSourceLinkable
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX