共用方式為


CellSet.LoadXml 方法

Returns a CellSet created from a server response, passed in as an XmlReader.

命名空間:  Microsoft.AnalysisServices.AdomdClient
組件:  Microsoft.AnalysisServices.AdomdClient (在 Microsoft.AnalysisServices.AdomdClient.dll 中)

語法

'宣告
Public Shared Function LoadXml ( _
    xmlTextReader As XmlReader _
) As CellSet
'用途
Dim xmlTextReader As XmlReader 
Dim returnValue As CellSet 

returnValue = CellSet.LoadXml(xmlTextReader)
public static CellSet LoadXml(
    XmlReader xmlTextReader
)
public:
static CellSet^ LoadXml(
    XmlReader^ xmlTextReader
)
static member LoadXml : 
        xmlTextReader:XmlReader -> CellSet
public static function LoadXml(
    xmlTextReader : XmlReader
) : CellSet

參數

傳回值

型別:Microsoft.AnalysisServices.AdomdClient.CellSet
A CellSet, created from the xmlTextReaderparameter.

例外狀況

例外狀況 條件
System.ArgumentNullException

The xmlTextReader was set to null.

System.ArgumentException

The State property of xmlTextReader was Error, EndOfFile, or Closed.

System.InvalidOperationException

The XML returned by the provider was not a valid cellset response.

AdomdErrorResponseException

The XML returned by the provider was a valid error response.

請參閱

參考

CellSet 類別

Microsoft.AnalysisServices.AdomdClient 命名空間