共用方式為


SqlClientFactory.CreateBatch 方法

定義

傳回強型別的 DbBatch 執行個體。

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

傳回

的新強型別實例 DbBatch

範例

下列代碼段會傳回強型別 DbBatch 實例:

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

適用於