Class ComposeBeforeAttribute
Indicates that a component is required by another composer.
Inheritance
Namespace: Umbraco.Cms.Core.Composing
Assembly: Umbraco.Core.dll
Syntax
public sealed class ComposeBeforeAttribute : Attribute
Remarks
This attribute is not inherited. This means that a composer class inheriting from another composer class does not inherit its requirements. However, the runtime checks the interfaces of every composer for their requirements, so requirements declared on interfaces are inherited by every composer class implementing the interface.
When targeting a class, indicates a dependency on the composer which must be enabled, unless the requirement has explicitly been declared as weak (and then, only if the composer is enabled).
When targeting an interface, indicates a dependency on enabled composers implementing the interface. It could be no composer at all, unless the requirement has explicitly been declared as strong (and at least one composer must be enabled).
Constructors
View SourceComposeBeforeAttribute(Type)
Initializes a new instance of the ComposeBeforeAttribute class.
Declaration
public ComposeBeforeAttribute(Type requiringType)
Parameters
Type | Name | Description |
---|---|---|
Type | requiringType | The type of the required composer. |
Properties
View SourceRequiringType
Gets the required type.
Declaration
public Type RequiringType { get; }
Property Value
Type | Description |
---|---|
Type |