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 SourceUmbracoOptionsAttribute(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 SourceBindNonPublicProperties
Gets or sets a value indicating whether to bind non-public properties.
Declaration
public bool BindNonPublicProperties { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
ConfigurationKey
Gets the configuration key used to bind the settings.
Declaration
public string ConfigurationKey { get; }
Property Value
| Type | Description |
|---|---|
| string |