ArcFM Desktop Developer Guide
InstantiateProvider<TProvider>(ProviderSettings) Method


The provider type to be instantiate.
The configuration information to be used in creating and initializing the provider.
Instatiates a provider from information within a System.Configuration.ProviderSettings object.
Syntax
'Declaration
 
Public Overloads Shared Function InstantiateProvider(Of TProvider As ProviderBase)( _
   ByVal providerSettings As ProviderSettings _
) As TProvider
'Usage
 
Dim providerSettings As ProviderSettings
Dim value As TProvider
 
value = ProvidersHelper.InstantiateProvider(Of TProvider)(providerSettings)
public static TProvider InstantiateProvider<TProvider>( 
   ProviderSettings providerSettings
)
where TProvider: ProviderBase

Parameters

providerSettings
The configuration information to be used in creating and initializing the provider.

Type Parameters

TProvider
The provider type to be instantiate.

Return Value

A new provider instance initialized with the provider settings.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionThrown if 'providerSettings' is null.
System.Configuration.Provider.ProviderExceptionThrown if specified provider type is not valid or 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