DbProviderFactories 类

定义

表示一组静态方法,这些方法用于创建 DbProviderFactory 类的一个或多个实例。Represents a set of static methods for creating one or more instances of DbProviderFactory classes.

public ref class DbProviderFactories abstract sealed
public static class DbProviderFactories
type DbProviderFactories = class
Public Class DbProviderFactories
继承
DbProviderFactories

方法

GetFactory(DataRow)

返回 DbProviderFactory 的一个实例。Returns an instance of a DbProviderFactory.

GetFactory(DbConnection)

返回 DbProviderFactory 的一个实例。Returns an instance of a DbProviderFactory.

GetFactory(String)

返回 DbProviderFactory 的一个实例。Returns an instance of a DbProviderFactory.

GetFactoryClasses()

返回一个 DataTable,其中包含有关实现 DbProviderFactory 的所有已安装提供程序的信息。Returns a DataTable that contains information about all installed providers that implement DbProviderFactory.

GetProviderInvariantNames()

DbProviderFactory 的所有已注册的实例返回固定提供程序名称。Returns the invariant provider names for all registered instances of DbProviderFactory.

RegisterFactory(String, DbProviderFactory)

使用指定的固定提供程序名称注册 DbProviderFactory 的实例。Registers an instance of DbProviderFactory under the specified invariant provider name.

RegisterFactory(String, String)

使用按指定的固定提供程序名称给定的程序集限定名称注册 DbProviderFactoryRegisters a DbProviderFactory with the given assembly-qualified name under the specified invariant provider name.

RegisterFactory(String, Type)

使用按指定的固定提供程序名称给定的类型注册 DbProviderFactoryRegisters a DbProviderFactory with the given type under the specified invariant provider name.

TryGetFactory(String, DbProviderFactory)

尝试获取按指定的固定提供程序名称注册的 DbProviderFactoryAttempts to get the DbProviderFactory registered under the specified invariant provider name.

UnregisterFactory(String)

删除给定提供程序固定名称的 DbProviderFactory 注册。Removes a DbProviderFactory registration for the given provider invariant name.

适用于

另请参阅