DbDataAdapter.GetBatchedRecordsAffected(Int32, Int32, Exception) 方法

定義

傳回在較大之批次更新中嘗試個別更新的相關資訊。

protected:
 virtual bool GetBatchedRecordsAffected(int commandIdentifier, [Runtime::InteropServices::Out] int % recordsAffected, [Runtime::InteropServices::Out] Exception ^ % error);
protected virtual bool GetBatchedRecordsAffected (int commandIdentifier, out int recordsAffected, out Exception? error);
protected virtual bool GetBatchedRecordsAffected (int commandIdentifier, out int recordsAffected, out Exception error);
abstract member GetBatchedRecordsAffected : int * int * Exception -> bool
override this.GetBatchedRecordsAffected : int * int * Exception -> bool
Protected Overridable Function GetBatchedRecordsAffected (commandIdentifier As Integer, ByRef recordsAffected As Integer, ByRef error As Exception) As Boolean

參數

commandIdentifier
Int32

批次中個別命令之以零為基礎的資料行序數。

recordsAffected
Int32

資料存放區中受批次內指定命令影響的資料行數目。

error
Exception

在指定命令的執行期間所擲回的 Exception。 如果未擲回例外狀況,則傳回 null (在 Visual Basic 中為 Nothing)。

傳回

在較大批次更新內個別更新嘗試的相關資訊。

備註

支援批次更新邏輯的數據提供者必須覆寫 類別上的 DbDataAdapter 一系列虛擬方法。 GetBatchedRecordsAffected 代表其中一個虛擬方法。 類別 DbDataAdapter 依賴 GetBatchedRecordsAffected 判斷批次內個別更新嘗試的成功或失敗,以便據以標記每個對應的 DataRow 專案。

適用於

另請參閱