다음을 통해 공유


ExecuteXmlReader 메서드

Runs the AdomdCommand and returns an System.Xml..::..XmlReader.

네임스페이스:  Microsoft.AnalysisServices.AdomdClient
어셈블리:  Microsoft.AnalysisServices.AdomdClient(Microsoft.AnalysisServices.AdomdClient.dll)

구문

‘선언
Public Function ExecuteXmlReader As XmlReader
‘사용 방법
Dim instance As AdomdCommand
Dim returnValue As XmlReader

returnValue = instance.ExecuteXmlReader()
public XmlReader ExecuteXmlReader()
public:
XmlReader^ ExecuteXmlReader()
member ExecuteXmlReader : unit -> XmlReader 
public function ExecuteXmlReader() : XmlReader

반환 값

유형: System.Xml. . :: . .XmlReader
An System.Xml..::..XmlReaderthat contains the results of the command.

예외

예외 조건
AdomdErrorResponseException

The provider returned an error in response.

AdomdUnknownResponseException

The provider sent an unrecognizable response.

AdomdConnectionException

The connection was broken.

System..::..InvalidOperationException

An error occurred because one of the following conditions was met:

주의

Instead of translating the XML for Analysis response from an XML format into an AdomdDataReader or CellSet, this method, returns an System.Xml..::..XmlReader that directly references the XML for Analysis response in its native XML format.

While the System.Xml..::..XmlReaderis in use, the associated AdomdConnection is busy serving the System.Xml..::..XmlReader. While in this state, the AdomdConnection can only be closed; no other operations can be performed on it. This remains the case until the Close method of the System.Xml..::..XmlReaderis called.

You should be prepared to catch any exception that can be thrown while using the System.Xml..::..XmlReader, such as the XmlException.