Class ApiContent
Represents content in the Delivery API.
Namespace: Umbraco.Cms.Core.Models.DeliveryApi
Assembly: Umbraco.Core.dll
Syntax
public class ApiContent : ApiElement, IApiContent, IApiElement
Constructors
View SourceApiContent(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 SourceCreateDate
Gets the date and time when the content was created.
Declaration
public DateTime CreateDate { get; }
Property Value
| Type | Description |
|---|---|
| DateTime |
Name
Gets the name of the content.
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
Route
Gets the route information for the content.
Declaration
public IApiContentRoute Route { get; }
Property Value
| Type | Description |
|---|---|
| IApiContentRoute |
UpdateDate
Gets the date and time when the content was last updated.
Declaration
public DateTime UpdateDate { get; }
Property Value
| Type | Description |
|---|---|
| DateTime |