Search Results for

    Show / Hide Table of Contents
    View Source

    Class UmbracoOptionsAttribute

    Attribute used to mark a class as an Umbraco configuration options class.

    Inheritance
    object
    Attribute
    Namespace: Umbraco.Cms.Core.Configuration.Models
    Assembly: Umbraco.Core.dll
    Syntax
    [AttributeUsage(AttributeTargets.Class)]
    public class UmbracoOptionsAttribute : Attribute
    Remarks

    This attribute specifies the configuration key used to bind settings from configuration sources.

    Constructors

    View Source

    UmbracoOptionsAttribute(string)

    Initializes a new instance of the UmbracoOptionsAttribute class.

    Declaration
    public UmbracoOptionsAttribute(string configurationKey)
    Parameters
    Type Name Description
    string configurationKey

    The configuration key used to bind the settings.

    Properties

    View Source

    BindNonPublicProperties

    Gets or sets a value indicating whether to bind non-public properties.

    Declaration
    public bool BindNonPublicProperties { get; set; }
    Property Value
    Type Description
    bool
    View Source

    ConfigurationKey

    Gets the configuration key used to bind the settings.

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