Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft