ContentType
A ContentType corresponds to the Document Type found in the backoffice.
using Umbraco.Cms.Core.Models;
using Umbraco.Cms.Core.Services;Constructors
ContentType(IShortStringHelper shortStringHelper, IContentType parent, string alias)
new ContentType(IShortStringHelper shortStringHelper, int parentId)
Properties
.Alias
.AllowedAsRoot
.AllowedContentTypes
.AllowedTemplates
.ContentTypeComposition
.CompositionPropertyGroups
.CompositionPropertyTypes
.CreateDate
.CreatorId
.Description
.DefaultTemplate
.Icon
.Id
.Key
.Level
.Name
.ParentId
.Path
.PropertyGroups
.PropertyTypes
.SortOrder
.Thumbnail
Methods
.AddContentType(IContentTypeComposition contentType)
.CompositionAliases()
.CompositionIds()
.ContentTypeCompositionExists(string alias)
.SetDefaultTemplate(ITemplate template)
.RemoveContentType(string alias)
.RemovePropertyType(string propertyTypeAlias)
.RemoveTemplate(ITemplate template)
Last updated
Was this helpful?