SqlCommand.EndExecuteXmlReader(IAsyncResult) 메서드

정의

요청된 데이터를 XML로 반환하여 Transact-SQL 문의 비동기 실행을 완료합니다.

public:
 System::Xml::XmlReader ^ EndExecuteXmlReader(IAsyncResult ^ asyncResult);
public System.Xml.XmlReader EndExecuteXmlReader(IAsyncResult asyncResult);
member this.EndExecuteXmlReader : IAsyncResult -> System.Xml.XmlReader
Public Function EndExecuteXmlReader (asyncResult As IAsyncResult) As XmlReader

매개 변수

asyncResult
IAsyncResult

IAsyncResult 호출에서 반환되는 입니다BeginExecuteXmlReader().

반품

XmlReader 결과 XML 데이터를 가져오는 데 사용할 수 있는 개체입니다.

예외

asyncResult 매개 변수가 null입니다(Microsoft Visual Basic Nothing).

EndExecuteXmlReader(IAsyncResult)는 단일 명령 실행을 위해 두 번 이상 호출되었거나 메서드가 해당 실행 메서드와 일치하지 않습니다(예: 호출 BeginExecuteNonQuery()실행을 완료하기 위해 호출된 EndExecuteXmlReader(IAsyncResult) 코드).

예제

메서드 사용을 EndExecuteXmlReader 보여주는 예제는 다음을 참조하세요 BeginExecuteXmlReader.

설명

BeginExecuteXmlReader 호출하여 Transact-SQL 문을 실행하는 경우 작업을 완료하려면 EndExecuteXmlReader 호출해야 합니다. 명령을 실행하는 프로세스가 아직 완료되지 않은 경우 이 메서드는 작업이 완료될 때까지 차단합니다. 사용자는 메서드에서 반환 BeginExecuteXmlReader 된 인스턴스를 사용하여 명령이 IAsyncResult 작업을 완료했는지 확인할 수 있습니다. 호출에서 콜백 프로시저를 지정한 경우 이 메서드를 BeginExecuteXmlReader호출해야 합니다.

적용 대상

추가 정보