Share via


DataDOMEvent.XDocument Property

Gets a reference to the XDocument object that is associated with the DataDOMEventObject object during a data validation event.

Namespace: Microsoft.Office.Interop.InfoPath
Assembly: Microsoft.Office.Interop.InfoPath (in microsoft.office.interop.infopath.dll)

Syntax

'Declaration
'Usage

Remarks

After you have set a reference to the XDocument object that is returned, you can use any of the properties and methods that it provides.

Example

In the following example, the XDocument property of the DataDOMEvent object is used to set a reference to the XDocument object:

public void qtty_OnBeforeChange(DataDOMEvent e)
 {
   
   XDocument doc = e.XDocument;
 }

See Also

Reference

DataDOMEvent Interface
DataDOMEvent Members
Microsoft.Office.Interop.InfoPath Namespace