編集

SpecialSettingAttribute Class

Definition

Indicates that an application settings property has a special significance. This class cannot be inherited.

public ref class SpecialSettingAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Property)]
public sealed class SpecialSettingAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Property)>]
type SpecialSettingAttribute = class
    inherit Attribute
Public NotInheritable Class SpecialSettingAttribute
Inherits Attribute
Inheritance
SpecialSettingAttribute
Attributes

Remarks

Certain application settings properties have a special significance that alters the way in which their associated settings provider should process them. The SpecialSettingAttribute is used to identify such properties. This class uses the System.Configuration.SpecialSetting enumeration to indicate what special category the property belongs to.

SpecialSettingAttribute can only be applied to the settings class or to the individual settings property.

For an example of how a settings provider deals with the SpecialSettingAttribute, see the GetPropertyValues method of the LocalFileSettingsProvider class.

Constructors

Name Description
SpecialSettingAttribute(SpecialSetting)

Initializes a new instance of the SpecialSettingAttribute class.

Properties

Name Description
SpecialSetting

Gets the value describing the special setting category of the application settings property.

Applies to

See also