Search Results for

    Show / Hide Table of Contents
    View Source

    Class ApiContent

    Represents content in the Delivery API.

    Inheritance
    object
    ApiElement
    Namespace: Umbraco.Cms.Core.Models.DeliveryApi
    Assembly: Umbraco.Core.dll
    Syntax
    public class ApiContent : ApiElement, IApiContent, IApiElement

    Constructors

    View Source

    ApiContent(Guid, string, string, DateTime, DateTime, IApiContentRoute, IDictionary<string, object?>)

    Initializes a new instance of the ApiContent class.

    Declaration
    public ApiContent(Guid id, string name, string contentType, DateTime createDate, DateTime updateDate, IApiContentRoute route, IDictionary<string, object?> properties)
    Parameters
    Type Name Description
    Guid id

    The unique identifier of the content.

    string name

    The name of the content.

    string contentType

    The content type alias.

    DateTime createDate

    The date and time when the content was created.

    DateTime updateDate

    The date and time when the content was last updated.

    IApiContentRoute route

    The route information for the content.

    IDictionary<string, object> properties

    The property values of the content.

    Properties

    View Source

    CreateDate

    Gets the date and time when the content was created.

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

    Name

    Gets the name of the content.

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    string
    View Source

    Route

    Gets the route information for the content.

    Declaration
    public IApiContentRoute Route { get; }
    Property Value
    Type Description
    IApiContentRoute
    View Source

    UpdateDate

    Gets the date and time when the content was last updated.

    Declaration
    public DateTime UpdateDate { get; }
    Property Value
    Type Description
    DateTime
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX