ArcFM Desktop Developer Guide
InstantiateProvider<TProvider>(ProviderSettingsCollection,String) Method


The provider type to be instantiate.
The collection of information on the providers to be instantiated.
Instantiates an collection of providers from a collection of provider settings information.
Syntax
'Declaration
 
Public Overloads Shared Function InstantiateProvider(Of TProvider As ProviderBase)( _
   ByVal configProviders As ProviderSettingsCollection, _
   ByVal providerName As String _
) As TProvider
'Usage
 
Dim configProviders As ProviderSettingsCollection
Dim providerName As String
Dim value As TProvider
 
value = ProvidersHelper.InstantiateProvider(Of TProvider)(configProviders, providerName)
public static TProvider InstantiateProvider<TProvider>( 
   ProviderSettingsCollection configProviders,
   string providerName
)
where TProvider: ProviderBase

Parameters

configProviders
The collection of information on the providers to be instantiated.
providerName

Type Parameters

TProvider
The provider type to be instantiate.
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 XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)

Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.

See Also

Reference

ProvidersHelper Class
ProvidersHelper Members
Overload List

 

 


Send Comment