Search Results for

    Show / Hide Table of Contents
    View Source

    Class DisableAttribute

    Indicates that a composer should be disabled.

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.Composing
    Assembly: Umbraco.Core.dll
    Syntax
    public class DisableAttribute : Attribute
    Remarks

    If a type is specified, disables the composer of that type, else disables the composer marked with the attribute.

    This attribute is not inherited.

    This attribute applies to classes only, it is not possible to enable/disable interfaces.

    Assembly-level DisableComposerAttribute has greater priority than DisableAttribute attribute when it is marking the composer itself, but lower priority that when it is referencing another composer.

    Constructors

    View Source

    DisableAttribute()

    Initializes a new instance of the DisableAttribute class.

    Declaration
    public DisableAttribute()
    View Source

    DisableAttribute(String, String)

    Declaration
    public DisableAttribute(string fullTypeName, string assemblyName)
    Parameters
    Type Name Description
    System.String fullTypeName
    System.String assemblyName
    View Source

    DisableAttribute(Type)

    Initializes a new instance of the DisableAttribute class.

    Declaration
    public DisableAttribute(Type disabledType)
    Parameters
    Type Name Description
    Type disabledType

    Properties

    View Source

    DisabledType

    Gets the disabled type, or null if it is the composer marked with the attribute.

    Declaration
    public Type? DisabledType { get; }
    Property Value
    Type Description
    System.Nullable<Type>
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • DisableAttribute()
      • DisableAttribute(String, String)
      • DisableAttribute(Type)
    • Properties
      • DisabledType
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX