SqlClientFactory.CreateBatchCommand 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 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();