Export (0) Print
Expand All

_Application2.XDocuments Property (Microsoft.Office.Interop.InfoPath.SemiTrust)

Gets a reference to the XDocuments collection.

This property is not CLS-compliant.  

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

XDocumentsCollection XDocuments { get; }

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

ImportantImportant:

This member can be accessed without restrictions.

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);

Community Additions

ADD
Show:
© 2014 Microsoft