Search Results for

    Show / Hide Table of Contents
    View Source

    Class ComposeBeforeAttribute

    Indicates that a component is required by another composer.

    Inheritance
    object
    Attribute
    Namespace: Umbraco.Cms.Core.Composing
    Assembly: Umbraco.Core.dll
    Syntax
    [AttributeUsage(AttributeTargets.Class|AttributeTargets.Interface, AllowMultiple = true, Inherited = false)]
    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 Source

    ComposeBeforeAttribute(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 Source

    RequiringType

    Gets the required type.

    Declaration
    public Type RequiringType { get; }
    Property Value
    Type Description
    Type
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX