_Application2.XDocuments 属性

获取一个对 XDocuments 集合的引用。

命名空间:  Microsoft.Office.Interop.InfoPath.SemiTrust
程序集:  Microsoft.Office.Interop.InfoPath.SemiTrust(位于 Microsoft.Office.Interop.InfoPath.SemiTrust.dll 中)

语法

声明
ReadOnly Property XDocuments As XDocumentsCollection
    Get
用法
Dim instance As _Application2
Dim value As XDocumentsCollection

value = instance.XDocuments
XDocumentsCollection XDocuments { get; }

属性值

类型:Microsoft.Office.Interop.InfoPath.SemiTrust.XDocumentsCollection

实现

_Application.XDocuments

备注

在设置了对 XDocuments 集合的引用之后,可以使用其属性访问其所包含的每个 XDocument 对象。

重要

可以无限制访问此成员。

示例

在以下示例中,XDocuments 属性用于访问 XDocumentsCollection 集合的 Count 属性,并在消息框中显示该值:

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

另请参阅

引用

_Application2 接口

_Application2 成员

XDocuments 重载

Microsoft.Office.Interop.InfoPath.SemiTrust 命名空间