_XDocument2.URI 属性
获取表单的统一资源标识符 (URI)。
命名空间: Microsoft.Office.Interop.InfoPath.SemiTrust
程序集: Microsoft.Office.Interop.InfoPath.SemiTrust(位于 Microsoft.Office.Interop.InfoPath.SemiTrust.dll 中)
语法
声明
ReadOnly Property URI As String
Get
用法
Dim instance As _XDocument2
Dim value As String
value = instance.URI
string URI { get; }
属性值
实现
备注
在通过 XDocumentsCollection 集合访问时,URI 属性可用作表单的名称。
重要
此成员只能由与当前打开的表单在相同域中运行的表单访问,或者由已授予跨域权限的表单访问。
示例
在以下示例中,XDocument 对象的 URI 属性用于在消息框中显示表单的 URI:
thisXDocument.UI.Alert("URI:" + thisXDocument.URI);