ProvidersHelper.InstantiateProviders Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a collection of providers of the given type using the supplied settings.
public:
static void InstantiateProviders(System::Configuration::ProviderSettingsCollection ^ configProviders, System::Configuration::Provider::ProviderCollection ^ providers, Type ^ providerType);
public static void InstantiateProviders (System.Configuration.ProviderSettingsCollection configProviders, System.Configuration.Provider.ProviderCollection providers, Type providerType);
static member InstantiateProviders : System.Configuration.ProviderSettingsCollection * System.Configuration.Provider.ProviderCollection * Type -> unit
Public Shared Sub InstantiateProviders (configProviders As ProviderSettingsCollection, providers As ProviderCollection, providerType As Type)
Parameters
- configProviders
- ProviderSettingsCollection
A collection of settings to be passed to the provider upon initialization.
- providers
- ProviderCollection
The collection used to contain the initialized providers after the method returns.
Remarks
This method calls the InstantiateProvider method, and any exceptions thrown by that method will bubble up through the InstantiateProviders method.