Class ContentTypeAvailableCompositionsResult
Used when determining available compositions for a given content type
Inheritance
object
Namespace: Umbraco.Cms.Core.Models
Assembly: Umbraco.Core.dll
Syntax
public class ContentTypeAvailableCompositionsResult
Constructors
View SourceContentTypeAvailableCompositionsResult(IContentTypeComposition, bool)
Initializes a new instance of the ContentTypeAvailableCompositionsResult class.
Declaration
public ContentTypeAvailableCompositionsResult(IContentTypeComposition composition, bool allowed)
Parameters
| Type | Name | Description |
|---|---|---|
| IContentTypeComposition | composition | The composition content type. |
| bool | allowed | Whether the composition is allowed. |
Properties
View SourceAllowed
Gets a value indicating whether the composition is allowed.
Declaration
public bool Allowed { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Composition
Gets the composition content type.
Declaration
public IContentTypeComposition Composition { get; }
Property Value
| Type | Description |
|---|---|
| IContentTypeComposition |