Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IPublishedContentType

    Represents an IPublishedElement type.

    Namespace: Umbraco.Cms.Core.Models.PublishedContent
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IPublishedContentType
    Remarks

    Instances implementing the IPublishedContentType interface should be immutable, ie if the content type changes, then a new instance needs to be created.

    Properties

    View Source

    Alias

    Gets the content type alias.

    Declaration
    string Alias { get; }
    Property Value
    Type Description
    System.String
    View Source

    CompositionAliases

    Gets the aliases of the content types participating in the composition.

    Declaration
    HashSet<string> CompositionAliases { get; }
    Property Value
    Type Description
    HashSet<System.String>
    View Source

    Id

    Gets the content type identifier.

    Declaration
    int Id { get; }
    Property Value
    Type Description
    System.Int32
    View Source

    IsElement

    Gets a value indicating whether this content type is for an element.

    Declaration
    bool IsElement { get; }
    Property Value
    Type Description
    System.Boolean
    View Source

    ItemType

    Gets the content item type.

    Declaration
    PublishedItemType ItemType { get; }
    Property Value
    Type Description
    PublishedItemType
    View Source

    Key

    Gets the unique key for the content type.

    Declaration
    Guid Key { get; }
    Property Value
    Type Description
    Guid
    View Source

    PropertyTypes

    Gets the content type properties.

    Declaration
    IEnumerable<IPublishedPropertyType> PropertyTypes { get; }
    Property Value
    Type Description
    IEnumerable<IPublishedPropertyType>
    View Source

    Variations

    Gets the content variations of the content type.

    Declaration
    ContentVariation Variations { get; }
    Property Value
    Type Description
    ContentVariation

    Methods

    View Source

    GetPropertyIndex(String)

    Gets a property type index.

    Declaration
    int GetPropertyIndex(string alias)
    Parameters
    Type Name Description
    System.String alias
    Returns
    Type Description
    System.Int32
    Remarks

    The alias is case-insensitive. This is the only place where alias strings are compared.

    View Source

    GetPropertyType(Int32)

    Gets a property type.

    Declaration
    IPublishedPropertyType GetPropertyType(int index)
    Parameters
    Type Name Description
    System.Int32 index
    Returns
    Type Description
    IPublishedPropertyType
    View Source

    GetPropertyType(String)

    Gets a property type.

    Declaration
    IPublishedPropertyType GetPropertyType(string alias)
    Parameters
    Type Name Description
    System.String alias
    Returns
    Type Description
    IPublishedPropertyType
    • Improve this Doc
    • View Source
    In This Article
    • Properties
      • Alias
      • CompositionAliases
      • Id
      • IsElement
      • ItemType
      • Key
      • PropertyTypes
      • Variations
    • Methods
      • GetPropertyIndex(String)
      • GetPropertyType(Int32)
      • GetPropertyType(String)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX