DbProviderFactories.GetFactory Method (DbConnection)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Returns an instance of a DbProviderFactory.

Namespace:   System.Data.Common
Assembly:  System.Data (in System.Data.dll)

public static DbProviderFactory GetFactory(
	DbConnection connection
)

Parameters

connection
Type: System.Data.Common.DbConnection

The connection used.

Return Value

Type: System.Data.Common.DbProviderFactory

An instance of a DbProviderFactory for a specified connection.

.NET Framework
Available since 4.5
Return to top
Show: