MediaType
A MediaType is almost the same as a ContentType. I.e. a model / data definition for your media nodes.
using Umbraco.Cms.Core.Models;
using Umbraco.Cms.Core.Services;Constructors
new MediaType(IShortStringHelper shortStringHelper, int parentId)
new MediaType(IShortStringHelper shortStringHelper,IMediaType parent)
new MediaType(IShortStringHelper shortStringHelper, IMediaType parent, string alias)
Properties
.Alias
.AllowedContentTypes
.ContentTypeComposition
.CompositionPropertyGroups
.CompositionPropertyTypes
.CreateDate
.CreatorId
.Description
.Icon
.Id
.Key
.Level
.Name
.ParentId
.Path
.PropertyGroups
.PropertyTypes
.SortOrder
.Thumbnail
Methods
.AddContentType(IContentTypeComposition mediaType)
.CompositionAliases()
.CompositionIds()
.ContentTypeCompositionExists(string alias)
.RemoveContentType(string alias)
.RemovePropertyType(string propertyTypeAlias)
Last updated
Was this helpful?