System
2.0.0.0
4.0.0.0
System.Configuration.SettingAttribute
System.AttributeUsage(System.AttributeTargets.Property)
Application settings properties have a scope that is based either at the application or the user level. As the categories imply, application-scoped settings properties present uniform values to all users of the application, whereas user-scoped properties have dedicated values for each user of the application.
The indicates that a property should be considered an application-level setting, and that appropriate storage decisions should be made accordingly by the settings provider.
A scope attribute is required for each settings property. If a property is not applied with either a or , the property is not recognized by the settings provider—it is not serialized. It is invalid, however, to apply both attributes to the same property. Such an attempt will cause a to be thrown.
Specifies that an application settings property has a common value for all users of an application. This class cannot be inherited.
Constructor
2.0.0.0
4.0.0.0
Each application settings property must be applied with a single scope attribute in order for it to be recognized and serialized by the settings provider.
Initializes a new instance of the class.