Initializes the provider.
Assembly: System.Configuration (in System.Configuration.dll)
'Declaration Public Overridable Sub Initialize ( _ name As String, _ config As NameValueCollection _ )
- Type: System.String
The friendly name of the provider.
- Type: System.Collections.Specialized.NameValueCollection
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 prior to performing provider-specific initialization, this method is a central location for preventing double initialization.
Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.