Edit

Share via


DbConnection.CreateCommand Method

Definition

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

public:
 System::Data::Common::DbCommand ^ CreateCommand();
public System.Data.Common.DbCommand CreateCommand ();
member this.CreateCommand : unit -> System.Data.Common.DbCommand
Public Function CreateCommand () As DbCommand

Returns

A DbCommand object.

Applies to

See also