Breyta

Deila með


XmlDataProvider.Document Property

Definition

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.

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