XmlDataProvider.Document Property

Definition

Gets or sets the XmlDocument to use as the binding source.

C#
public System.Xml.XmlDocument Document { get; set; }

Property Value

The XmlDocument to use as the binding source. The default value is null.

Remarks

XmlDataProvider exposes the following ways to access XML data.

XmlDataProvider performs a full refresh of all bindings on when a XmlDocument.NodeChanged event occurs. There are no optimizations for specific nodes.

If the Source property is set, then any inline XML data is discarded. If the Document property is set, then the Source property is cleared and any inline XML data is discarded.

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

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10