XDocument Property (VersionUpgradeEvent Object)

Microsoft Office InfoPath

A read-only property that returns a reference to the XDocument object that is associated with the VersionUpgradeEvent object during an OnVersionUpgrade event.

expression.XDocument

expression    Required. Returns a reference to the VersionUpgradeEvent object.

Security Level

2: Can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.

Remarks

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

Example

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

var objXDoc;

objXDoc = eventObj.XDocument;