Share via


XDocuments Property

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

expression.XDocuments

expression Required. An expression that returns a reference to the Application object.

Security Level

Security Level 1: Can be accessed without restrictions.

Remarks

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.

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:

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

Applies to | Application Object

See Also | XDocument Object | XDocuments Collection