Application.XDocuments Property

InfoPath Developer Reference

A read-only property that returns a reference to the XDocuments collection. Read-only

Version Information
 Version Added:  InfoPath 2003

Syntax

expression.XDocuments

expression   An expression that returns a Application object.

Return Value
XDocuments

Remarks

After you have set a reference to the XDocuments collection, you can use its properties to access each of the XDocument objects that it contains.

Security Level 0: Can be accessed without restrictions.

Example

In the following example, the XDocuments property is used to access the Count property of the XDocuments collection and display the value in a message box:

JScript
  XDocument.UI.Alert("Count of XDocuments: " + Application.XDocuments.Count);

See Also