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

Syntax

[System.AttributeUsage(System.AttributeTargets.Property)]
public sealed class NoSettingsVersionUpgradeAttribute : Attribute

Remarks

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.

Note:

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

Requirements

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