ArcFM Engine 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 ProviderBase)( _
   ByVal configProviders As ProviderSettingsCollection, _
   ByVal providers As ProviderCollection _
) 
'Usage
 
Dim configProviders As ProviderSettingsCollection
Dim providers As ProviderCollection
 
ProvidersHelper.InstantiateProviders(Of TProvider)(configProviders, providers)
public static void InstantiateProviders<TProvider>( 
   ProviderSettingsCollection configProviders,
   ProviderCollection providers
)
where TProvider: 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 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

 

 


Send Comment