ProviderBase.Initialize Method
Assembly: System.Configuration (in system.configuration.dll)
public void Initialize ( String name, NameValueCollection config )
public function Initialize ( name : String, config : NameValueCollection )
Parameters
- name
The friendly name of the provider.
- config
A collection of the name/value pairs representing the provider-specific attributes specified in the configuration for this provider.
The base class implementation internally tracks the number of times the provider's Initialize method has been called. If a provider is initialized more than once, an InvalidOperationException is thrown stating that the provider is already initialized.
Because most feature providers call Initialize prior to performing provider-specific initialization, this method is a central location for preventing double initialization.
Windows 98, Windows 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 .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.