Dela via


SqlClientFactory.CreateBatch Method

Definition

Returns a strongly typed DbBatch instance.

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

Returns

A new strongly typed instance of DbBatch .

Examples

The following code fragment returns a strongly typed DbBatch instance:

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

Applies to