Share via


_Application3.XDocuments - Propriété

Obtient une référence à la collection XDocuments.

Espace de noms :  Microsoft.Office.Interop.InfoPath.SemiTrust
Assembly :  Microsoft.Office.Interop.InfoPath.SemiTrust (dans Microsoft.Office.Interop.InfoPath.SemiTrust.dll)

Syntaxe

'Déclaration
ReadOnly Property XDocuments As XDocumentsCollection
    Get
'Utilisation
Dim instance As _Application3
Dim value As XDocumentsCollection

value = instance.XDocuments
XDocumentsCollection XDocuments { get; }

Valeur de propriété

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

Implémentations

_Application2.XDocuments
_Application.XDocuments

Remarques

Après avoir défini une référence à la collection XDocuments, vous pouvez utiliser ses propriétés pour accéder à chacun des objets XDocument qu'elle contient.

Important

Vous pouvez accéder à ce membre sans restrictions.

Exemples

Dans l'exemple suivant, la propriété XDocuments est utilisée pour accéder à la propriété Count de la collection XDocumentsCollection et en afficher la valeur dans une boîte de message :

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

Voir aussi

Référence

_Application3 interface

_Application3 - Membres

XDocuments - Surcharge

Microsoft.Office.Interop.InfoPath.SemiTrust - Espace de noms