ArcFM Responder Mobile Developer Guide
InstantiateProviders<TProvider> Method






The provider type to be instantiating.
The collection of information on the providers to be instantiated.
The collection to which instantiated providers will be added.
Instantiates an collection of providers from a collection of provider settings information.
Syntax
'Declaration
 
Public Shared Sub InstantiateProviders(Of TProvider As System.Configuration.Provider.ProviderBase)( _
   ByVal configProviders As System.Configuration.ProviderSettingsCollection, _
   ByVal providers As System.Configuration.Provider.ProviderCollection _
) 
'Usage
 
Dim configProviders As System.Configuration.ProviderSettingsCollection
Dim providers As System.Configuration.Provider.ProviderCollection
 
ProvidersHelper.InstantiateProviders(Of TProvider)(configProviders, providers)
public static void InstantiateProviders<TProvider>( 
   System.Configuration.ProviderSettingsCollection configProviders,
   System.Configuration.Provider.ProviderCollection providers
)
where TProvider: System.Configuration.Provider.ProviderBase
public procedure InstantiateProviders( 
    configProviders: System.Configuration.ProviderSettingsCollection;
    providers: System.Configuration.Provider.ProviderCollection
); static; 
public static function InstantiateProviders( 
   configProviders : System.Configuration.ProviderSettingsCollection,
   providers : System.Configuration.Provider.ProviderCollection
);
public: static void InstantiateProviders<TProvider>( 
   System.Configuration.ProviderSettingsCollection* configProviders,
   System.Configuration.Provider.ProviderCollection* providers
) 
where TProvider: System.Configuration.Provider.ProviderBase
public:
static void InstantiateProvidersgeneric<typename TProvider>
( 
   System.Configuration.ProviderSettingsCollection^ configProviders,
   System.Configuration.Provider.ProviderCollection^ providers
) 
where TProvider: System.Configuration.Provider.ProviderBase

Parameters

configProviders
The collection of information on the providers to be instantiated.
providers
The collection to which instantiated providers will be added.

Type Parameters

TProvider
The provider type to be instantiating.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionThrown if 'configProvider' or 'providers' is null.
System.Configuration.Provider.ProviderExceptionThrown if a provider in the collection is not of the type specified by 'TProvider'.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ProvidersHelper Class
ProvidersHelper Members

Send Feedback