Share via


SqlClientFactory.CreateBatchCommand Method

Definition

Returns a strongly typed DbBatchCommand instance.

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

Returns

A new strongly typed instance of DbBatchCommand .

Examples

The following code fragment returns a strongly typed DbBatchCommand instance:

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

Applies to