System.Configuration.NoSettingsVersionUpgradeAttribute Class

Specifies that a settings provider should disable any logic that gets invoked when an application upgrade is detected. This class cannot be inherited.

See Also: NoSettingsVersionUpgradeAttribute Members


public sealed class NoSettingsVersionUpgradeAttribute : Attribute


To create a fully featured application settings provider that supports application versioning, the provider must implement the System.Configuration.IApplicationSettingsProvider interface. One of the members in this interface, the IApplicationSettingsProvider.Upgrade(SettingsContext, SettingsPropertyCollection) method, is called to notify the provider that a new version of the application has been installed. In response, the provider is expected to perform an appropriate action, typically migrating past application settings.

The System.Configuration.NoSettingsVersionUpgradeAttribute informs the provider to suppress the upgrade logic associated with the current settings class. Therefore, the value of the previous version of this property group should not be migrated to the new installation.


This attribute can only be applied to individual application settings properties.


Namespace: System.Configuration
Assembly: System (in System.dll)
Assembly Versions:,
Since: .NET 2.0