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

일괄 작업 내에서 개별 명령의 열 서수(0부터 시작)입니다.

recordsAffected
Int32

일괄 작업 내에서 지정된 명령의 영향을 받는 데이터 저장소의 행 수입니다.

error
Exception

지정된 명령을 실행하는 도중 throw된 Exception입니다. 예외가 throw되지 않은 경우 null(Visual Basic의 경우 Nothing)을 반환합니다.

반환

보다 큰 일괄 처리 업데이트 내에서 개별 업데이트 시도에 대한 정보입니다.

설명

일괄 업데이트 논리를 지원하는 데이터 공급자는 클래스에서 일련의 가상 메서드 DbDataAdapter 를 재정의해야 합니다. GetBatchedRecordsAffected 는 이러한 가상 메서드 중 하나를 나타냅니다. 클래스는 DbDataAdapter 에 의존 GetBatchedRecordsAffected 하여 일괄 처리 내에서 개별 업데이트 시도의 성공 또는 실패를 확인하므로 그에 따라 각 업데이트를 DataRow 표시할 수 있습니다.

적용 대상

추가 정보