Miner.System Assembly > Miner.Configuration Namespace > ProvidersHelper Class > InstantiateProvider Method : InstantiateProvider<TProvider>(ProviderSettingsCollection,String) Method |
'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
Exception | Description |
---|---|
System.ArgumentNullException | Thrown if 'configProvider' or 'providers' is null. |
System.Configuration.Provider.ProviderException | Thrown if a provider in the collection is not of the type specified by 'TProvider'. |
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.