Freigeben über


SqlClientFactory.CreateBatchCommand Methode

Definition

Gibt eine stark typisierte DbBatchCommand-Instanz zurück.

public:
 override System::Data::Common::DbBatchCommand ^ CreateBatchCommand();
public override System.Data.Common.DbBatchCommand CreateBatchCommand ();
override this.CreateBatchCommand : unit -> System.Data.Common.DbBatchCommand
Public Overrides Function CreateBatchCommand () As DbBatchCommand

Gibt zurück

Eine neue stark typisierte instance von DbBatchCommand .

Beispiele

Das folgende Codefragment gibt eine stark typisierte DbBatchCommand instance zurück:

SqlClientFactory newFactory = SqlClientFactory.Instance;
DbParameter cmd = newFactory.CreateBatchCommand();

Gilt für: