XmlDataProvider.Document Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the XmlDocument to use as the binding source.
public:
property System::Xml::XmlDocument ^ Document { System::Xml::XmlDocument ^ get(); void set(System::Xml::XmlDocument ^ value); };
public System.Xml.XmlDocument Document { get; set; }
member this.Document : System.Xml.XmlDocument with get, set
Public Property Document As XmlDocument
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.
You can embed inline XML data using the XmlDataProvider class.
You can set the Source property to the Uri of an XML data file.
You can set this property to an XmlDocument.
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.