Bewerken

Delen via


XmlDataProvider.XPath Property

Definition

Gets or sets the XPath query used to generate the data collection.

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

Property Value

The XPath query used to generate the data collection. The default is an empty string.

Remarks

The XmlNode.SelectNodes method handles the XPath expressions from the XPath property. XPath functions are not supported. For XPath expression information, see the SelectNodes documentation and some examples provided in the Example section.

Setting the following properties will implicitly cause this XmlDataProvider object to refresh: Source, Document, XmlNamespaceManager, and XPath. When changing multiple refresh-causing properties, the use of DeferRefresh is recommended.

Applies to