DbProviderFactory.CreateCommand Method ()


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

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

abstract CreateCommand : unit -> DbCommand
override CreateCommand : unit -> DbCommand

Return Value

Type: System.Data.Common.DbCommand

A new instance of DbCommand.

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