Share via


XmlDataProvider.XPath 屬性

定義

取得或設定用來產生資料集合的 XPath 查詢。

public:
 property System::String ^ XPath { System::String ^ get(); void set(System::String ^ value); };
public string XPath { get; set; }
member this.XPath : string with get, set
Public Property XPath As String

屬性值

用來產生資料集合的 XPath 查詢。 預設為空字串。

備註

方法 XmlNode.SelectNodesXPath 處理 屬性中的 XPath 運算式。 XPath 不支援函式。 如需 XPath 運算式資訊,請參閱 SelectNodes 一節中提供的檔和一些範例。

設定下列屬性將隱含地造成此 XmlDataProvider 物件重新整理: SourceDocumentXmlNamespaceManagerXPath 。 變更多個重新整理原因的屬性時,建議使用 DeferRefresh

適用於