XPathResult.ResultType XPathResult.ResultType XPathResult.ResultType XPathResult.ResultType Property

定義

傳回 XPath 查詢所傳回值的型別。Returns the type of the value returned by the XPath query.

public:
 property System::Xml::XPath::XPathResultType ResultType { System::Xml::XPath::XPathResultType get(); };
public System.Xml.XPath.XPathResultType ResultType { get; }
member this.ResultType : System.Xml.XPath.XPathResultType
Public ReadOnly Property ResultType As XPathResultType

屬性值

XPathResultType

其中一個列舉值。One of the enumeration values. 若要取得實際的結果,請使用對應的方法。To get the actual result, use the corresponding method. 例如,如果值為 Number,請使用 GetResultAsNumber() 方法。For example, if the value is Number, use the GetResultAsNumber() method.

適用於