Search Results for

    Show / Hide Table of Contents
    View Source

    Class PublishableContentBase

    Provide an abstract base class for publishable content implementations (like IPublishedContent and IPublishedElement implementations).

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Models.PublishedContent
    Assembly: Umbraco.Core.dll
    Syntax
    public abstract class PublishableContentBase

    Constructors

    View Source

    PublishableContentBase()

    Declaration
    protected PublishableContentBase()

    Properties

    View Source

    ContentType

    Declaration
    public abstract IPublishedContentType ContentType { get; }
    Property Value
    Type Description
    IPublishedContentType
    View Source

    CreateDate

    Declaration
    public abstract DateTime CreateDate { get; }
    Property Value
    Type Description
    DateTime
    View Source

    CreatorId

    Declaration
    public abstract int CreatorId { get; }
    Property Value
    Type Description
    int
    View Source

    Cultures

    Declaration
    public abstract IReadOnlyDictionary<string, PublishedCultureInfo> Cultures { get; }
    Property Value
    Type Description
    IReadOnlyDictionary<string, PublishedCultureInfo>
    View Source

    Id

    Declaration
    public abstract int Id { get; }
    Property Value
    Type Description
    int
    View Source

    ItemType

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

    Key

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

    Properties

    Gets the properties of the element.

    Declaration
    public abstract IEnumerable<IPublishedProperty> Properties { get; }
    Property Value
    Type Description
    IEnumerable<IPublishedProperty>
    Remarks

    Contains one IPublishedProperty for each property defined for the content type, including inherited properties. Some properties may have no value.

    View Source

    SortOrder

    Declaration
    public abstract int SortOrder { get; }
    Property Value
    Type Description
    int
    View Source

    UpdateDate

    Declaration
    public abstract DateTime UpdateDate { get; }
    Property Value
    Type Description
    DateTime
    View Source

    WriterId

    Declaration
    public abstract int WriterId { get; }
    Property Value
    Type Description
    int

    Methods

    View Source

    GetProperty(string)

    Gets a property identified by its alias.

    Declaration
    public abstract IPublishedProperty? GetProperty(string alias)
    Parameters
    Type Name Description
    string alias

    The property alias.

    Returns
    Type Description
    IPublishedProperty

    The property identified by the alias.

    Remarks

    If the content type has no property with that alias, including inherited properties, returns null,

    otherwise return a property -- that may have no value (ie HasValue is false).

    The alias is case-insensitive.

    View Source

    IsDraft(string?)

    Declaration
    public abstract bool IsDraft(string? culture = null)
    Parameters
    Type Name Description
    string culture
    Returns
    Type Description
    bool
    View Source

    IsPublished(string?)

    Declaration
    public abstract bool IsPublished(string? culture = null)
    Parameters
    Type Name Description
    string culture
    Returns
    Type Description
    bool
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX