DbDataAdapter.GetBatchedParameter(Int32, Int32) 메서드

정의

현재 일괄 작업의 명령 중 하나에서 IDataParameter를 반환합니다.

protected:
 virtual System::Data::IDataParameter ^ GetBatchedParameter(int commandIdentifier, int parameterIndex);
protected virtual System.Data.IDataParameter GetBatchedParameter (int commandIdentifier, int parameterIndex);
abstract member GetBatchedParameter : int * int -> System.Data.IDataParameter
override this.GetBatchedParameter : int * int -> System.Data.IDataParameter
Protected Overridable Function GetBatchedParameter (commandIdentifier As Integer, parameterIndex As Integer) As IDataParameter

매개 변수

commandIdentifier
Int32

매개 변수를 검색할 명령의 인덱스입니다.

parameterIndex
Int32

명령에 있는 매개 변수의 인덱스입니다.

반환

지정된 IDataParameter 입니다.

예외

어댑터에서 일괄 처리를 지원하지 않는 경우

설명

에서 DbDataAdapter이 메서드는 을 throw합니다 NotSupportedException. 에서 DbDataAdapter 상속되는 클래스는 일괄 처리를 지원하도록 이 메서드를 재정의합니다.

상속자 참고

이 메서드는 보호되며 .NET Framework 데이터 공급자가 사용하도록 설계되었습니다.

에서 DbDataAdapter 상속되는 클래스가 일괄 처리를 지원하는 경우 해당 클래스는 사용자가 일괄 처리를 실행할 수 있도록 이 메서드를 재정의합니다. 구현은 제공된 를 commandIdentifier 사용하여 요청된 명령을 찾은 다음 제공된 를 parameterIndex 사용하여 요청된 매개 변수를 찾습니다. 예를 들어 의 commandIdentifier 0과 0의 는 parameterIndex 일괄 처리의 첫 번째 명령에서 첫 번째 매개 변수를 반환합니다.

적용 대상

추가 정보