DbConnection.IDbConnection.CreateCommand Method ()

 
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.

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 Function CreateCommand As IDbCommand
	Implements 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: