ערוך

שתף באמצעות


DbProviderFactories.RegisterFactory Method

Definition

Overloads

RegisterFactory(String, DbProviderFactory)

Registers an instance of DbProviderFactory under the specified invariant provider name.

RegisterFactory(String, String)

Registers a DbProviderFactory with the given assembly-qualified name under the specified invariant provider name.

RegisterFactory(String, Type)

Registers a DbProviderFactory with the given type under the specified invariant provider name.

RegisterFactory(String, DbProviderFactory)

Source:
DbProviderFactories.cs
Source:
DbProviderFactories.cs
Source:
DbProviderFactories.cs

Registers an instance of DbProviderFactory under the specified invariant provider name.

public:
 static void RegisterFactory(System::String ^ providerInvariantName, System::Data::Common::DbProviderFactory ^ factory);
public static void RegisterFactory (string providerInvariantName, System.Data.Common.DbProviderFactory factory);
static member RegisterFactory : string * System.Data.Common.DbProviderFactory -> unit
Public Shared Sub RegisterFactory (providerInvariantName As String, factory As DbProviderFactory)

Parameters

providerInvariantName
String

The invariant provider name under which to register the provider.

factory
DbProviderFactory

The instance of the provider factory to be registered.

Remarks

If a provider is already registered under providerInvariantName, that registration will be overwritten.

Applies to

RegisterFactory(String, String)

Source:
DbProviderFactories.cs
Source:
DbProviderFactories.cs
Source:
DbProviderFactories.cs

Registers a DbProviderFactory with the given assembly-qualified name under the specified invariant provider name.

public:
 static void RegisterFactory(System::String ^ providerInvariantName, System::String ^ factoryTypeAssemblyQualifiedName);
public static void RegisterFactory (string providerInvariantName, string factoryTypeAssemblyQualifiedName);
static member RegisterFactory : string * string -> unit
Public Shared Sub RegisterFactory (providerInvariantName As String, factoryTypeAssemblyQualifiedName As String)

Parameters

providerInvariantName
String

The invariant provider name under which to register the provider.

factoryTypeAssemblyQualifiedName
String

The assembly-qualified name for a DbProviderFactory.

Remarks

If a provider is already registered under providerInvariantName, that registration will be overwritten.

Applies to

RegisterFactory(String, Type)

Source:
DbProviderFactories.cs
Source:
DbProviderFactories.cs
Source:
DbProviderFactories.cs

Registers a DbProviderFactory with the given type under the specified invariant provider name.

public:
 static void RegisterFactory(System::String ^ providerInvariantName, Type ^ providerFactoryClass);
public static void RegisterFactory (string providerInvariantName, Type providerFactoryClass);
static member RegisterFactory : string * Type -> unit
Public Shared Sub RegisterFactory (providerInvariantName As String, providerFactoryClass As Type)

Parameters

providerInvariantName
String

The invariant provider name under which to register the provider.

providerFactoryClass
Type

The type representing a DbProviderFactory.

Remarks

If a provider is already registered under providerInvariantName, that registration will be overwritten.

Applies to