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()입니다.

반환

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

예외

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

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

예제

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

설명

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

적용 대상

추가 정보