Defines the Composition of a ContentType
Namespace: Umbraco.Cms.Core.Models Assembly: Umbraco.Core.dll Syntaxpublic interface IContentTypeComposition : IContentTypeBase, IUmbracoEntity, ITreeEntity, IEntity, IDeepCloneable, IRememberBeingDirty, ICanBeDirty
Properties View Source CompositionPropertyGroups
Gets the property groups for the entire composition.
DeclarationIEnumerable<PropertyGroup> CompositionPropertyGroups { get; }
Property Value View Source CompositionPropertyTypes
Gets the property types for the entire composition.
DeclarationIEnumerable<IPropertyType> CompositionPropertyTypes { get; }
Property Value View Source ContentTypeComposition
Gets or sets the content types that compose this content type.
DeclarationIEnumerable<IContentTypeComposition> ContentTypeComposition { get; set; }
Property Value View Source RemovedContentTypes
Returns a list of content type ids that have been removed from this instance's composition
DeclarationIEnumerable<int> RemovedContentTypes { get; }
Property Value Type Description IEnumerable<System.Int32> Methods View Source AddContentType(IContentTypeComposition)
Adds a new ContentType to the list of composite ContentTypes
Declarationbool AddContentType(IContentTypeComposition contentType)
Parameters Returns Type Description System.Boolean
True if ContentType was added, otherwise returns False
View Source CompositionAliases()Gets a list of ContentType aliases from the current composition
DeclarationIEnumerable<string> CompositionAliases()
Returns Type Description IEnumerable<System.String>
An enumerable list of string aliases
View Source CompositionIds()Gets a list of ContentType Ids from the current composition
DeclarationIEnumerable<int> CompositionIds()
Returns Type Description IEnumerable<System.Int32>
An enumerable list of integer ids
View Source CompositionKeys()Gets a list of ContentType keys from the current composition
DeclarationIEnumerable<Guid> CompositionKeys()
Returns Type Description IEnumerable<Guid>
An enumerable list of integer ids.
View Source ContentTypeCompositionExists(String)Checks if a ContentType with the supplied alias exists in the list of composite ContentTypes
Declarationbool ContentTypeCompositionExists(string alias)
Parameters Type Name Description System.String alias
Alias of a IContentType
Returns Type Description System.BooleanTrue if ContentType with alias exists, otherwise returns False
View Source GetOriginalComposedPropertyTypes()Gets the property types obtained via composition.
DeclarationIEnumerable<IPropertyType> GetOriginalComposedPropertyTypes()
Returns View Source RemoveContentType(Guid)
Removes a content type with a specified key from the composition.
Declarationbool RemoveContentType(Guid key)
Parameters Type Name Description Guid key
The key of the content type to remove.
Returns Type Description System.BooleanTrue if the content type was removed, otherwise false.
View Source RemoveContentType(String)Removes a ContentType with the supplied alias from the list of composite ContentTypes
Declarationbool RemoveContentType(string alias)
Parameters Type Name Description System.String alias
Alias of a IContentType
Returns Type Description System.BooleanTrue if ContentType was removed, otherwise returns False
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4