SqlClientFactory.CreateBatch Method    
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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();
The following code fragment returns a strongly typed DbBatch instance:
SqlClientFactory newFactory = SqlClientFactory.Instance;
DbParameter cmd = newFactory.CreateBatch();