ProvidersHelper.InstantiateProviders Method (ProviderSettingsCollection, ProviderCollection, Type)

 

Initializes a collection of providers of the given type using the supplied settings.

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

[AspNetHostingPermissionAttribute(SecurityAction.Demand, Level = AspNetHostingPermissionLevel.Low)]
public static void InstantiateProviders(
	ProviderSettingsCollection configProviders,
	ProviderCollection providers,
	Type providerType
)

Parameters

configProviders
Type: System.Configuration.ProviderSettingsCollection

A collection of settings to be passed to the provider upon initialization.

providers
Type: System.Configuration.Provider.ProviderCollection

The collection used to contain the initialized providers after the method returns.

providerType
Type: System.Type

The Type of the providers to be initialized.

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

.NET Framework
Available since 2.0
Return to top
Show: