SqlClientFactory.CreateBatchCommand 方法

定义

返回强类型的 DbBatchCommand 实例。

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

返回

的新强类型实例 DbBatchCommand

示例

以下代码片段返回强类型 DbBatchCommand 实例:

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

适用于