DbConnection::IDbConnection::CreateCommand Method ()

 

Creates and returns a DbCommand object that is associated with the current connection.

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

private:
virtual IDbCommand^ CreateCommand() sealed = IDbConnection::CreateCommand

Return Value

Type: System.Data::IDbCommand^

A DbCommand object that is associated with the connection.

For more information, see Commands and Parameters and CreateCommand.

.NET Framework
Available since 2.0
Return to top
Show: