次の方法で共有


_Application2.XDocuments Property

Gets a reference to the XDocuments collection.

Namespace:  Microsoft.Office.Interop.InfoPath.SemiTrust
Assembly:  Microsoft.Office.Interop.InfoPath.SemiTrust (in Microsoft.Office.Interop.InfoPath.SemiTrust.dll)

Syntax

'Declaration
ReadOnly Property XDocuments As XDocumentsCollection
    Get
'Usage
Dim instance As _Application2
Dim value As XDocumentsCollection

value = instance.XDocuments
XDocumentsCollection XDocuments { get; }

Property Value

Type: Microsoft.Office.Interop.InfoPath.SemiTrust.XDocumentsCollection

Implements

_Application.XDocuments

Remarks

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

Important

This member can be accessed without restrictions.

Examples

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

thisXDocument.UI.Alert("Count of XDocuments: " + thisApplication.XDocuments.Count);

See Also

Reference

_Application2 Interface

_Application2 Members

XDocuments Overload

Microsoft.Office.Interop.InfoPath.SemiTrust Namespace