Content
The Content class represents a single item in the content tree, its values are fetched directly from the database, not from the cache.
using Umbraco.Cms.Core.Models;
using Umbraco.Cms.Core.Services;Constructors
new Content(string name, IContent parent, IContentType contentType, string culture = null)
new Content(string name, IContent parent, IContentType contentType, int userId, string culture = null)
new Content(string name, IContent parent, IContentType contentType, PropertyCollection properties, string culture = null)
new Content(string name, int parentId, IContentType contentType, string culture = null)
new Content(string name, int parentId, IContentType contentType, int userId, string culture = null)
new Content(string name, int parentId, IContentType contentType, PropertyCollection properties, string culture = null)
Properties
.CreateDate
.CreatorId
.ContentType
.ContentTypeId
.Id
.Key
.PublishedCultures
.Level
.Name
.ParentId
.Path
.Properties
.Published
.PublishDate
.SortOrder
.PublishedState
.TemplateId
.Trashed
.UpdateDate
.VersionId
.WriterId
Methods
.GetCreatorProfile(IUserService userService)
.GetValue(string propertyTypeAlias)
.GetValue< TPassType >(string propertyTypeAlias)
.GetWriterProfile(IUserService userService)
.HasProperty(string propertyTypeAlias)
.SetValue(string propertyTypeAlias, object value)
.ToXml(IEntityXmlSerializer serializer)
Last updated
Was this helpful?