CellSet.LoadXml Method

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

命名空間: Microsoft.AnalysisServices.AdomdClient
組件: Microsoft.AnalysisServices.AdomdClient (in microsoft.analysisservices.adomdclient.dll)

語法

'宣告
Public Shared Function LoadXml ( _
    xmlTextReader As XmlReader _
) As CellSet
public static CellSet LoadXml (
    XmlReader xmlTextReader
)
public:
static CellSet^ LoadXml (
    XmlReader^ xmlTextReader
)
public static CellSet LoadXml (
    XmlReader xmlTextReader
)
public static function LoadXml (
    xmlTextReader : XmlReader
) : CellSet

參數

  • xmlTextReader
    XmlReader containing the server response to return as a CellSet. For more information about this class, see System.Xml.XmlReader.

傳回值

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.

執行緒安全性

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

平台

開發平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

目標平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

請參閱

參考

CellSet Class
CellSet Members
Microsoft.AnalysisServices.AdomdClient Namespace