共用方式為


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();

適用於