Editar

Compartilhar via


ProvidersHelper.InstantiateProviders Method

Definition

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.

providerType
Type

The Type of the providers to be initialized.

Remarks

This method calls the InstantiateProvider method, and any exceptions thrown by that method will bubble up through the InstantiateProviders method.

Applies to