DbProviderFactory.CreateConnection Method ()


Returns a new instance of the provider's class that implements the DbConnection class.

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

abstract CreateConnection : unit -> DbConnection
override CreateConnection : unit -> DbConnection

Return Value

Type: System.Data.Common.DbConnection

A new instance of DbConnection.

Universal Windows Platform
Available since 10
.NET Framework
Available since 2.0
Return to top