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

Exception 지정된 명령을 실행하는 동안 throw된 항목입니다. 예외가 throw되지 않으면 null(Visual Basic Nothing)를 반환합니다.

반품

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

설명

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

적용 대상

추가 정보