This documentation is archived and is not being maintained.

IApplicationSettingsProvider Interface

Defines extended capabilities for client-based application settings providers.

Namespace: System.Configuration
Assembly: System (in system.dll)

public interface IApplicationSettingsProvider
public interface IApplicationSettingsProvider
public interface IApplicationSettingsProvider
Not applicable.

The application settings architecture enables you to provide a custom storage mechanism for application settings by creating a custom settings provider, which is a class derived from SettingsProvider. Such a class contains the basic functionality for storing and retrieving properties. However, you can add additional standardized functionality by implementing the IApplicationSettingsProvider interface in the custom settings provider. This interface contains three methods that primarily enable the settings provider to more intelligently handle application version changes. Typically, the settings provider will store application settings for different versions of an application separately to anticipate the following circumstances:

  • Side-by-side execution of different versions of an application.

  • Retaining application settings when upgrading an application.

  • Resetting the application settings to their default values for the currently used version.

The LocalFileSettingsProvider class implements the IApplicationSettingsProvider interface. The same set of methods contained by IApplicationSettingsProvider is also found in the ApplicationSettingsBase class, enabling the establishment of a predefined communication channel between an application settings wrapper and its settings provider.

NoteNote:

This interface is optional. If a provider does not implement this interface, the settings infrastructure will fail without notification if it attempts to access any of the methods defined by this interface.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0
Show: