_XDocument2.UI 属性
返回一个对 UIObject 对象的引用。
命名空间: Microsoft.Office.Interop.InfoPath.SemiTrust
程序集: Microsoft.Office.Interop.InfoPath.SemiTrust(位于 Microsoft.Office.Interop.InfoPath.SemiTrust.dll 中)
语法
声明
ReadOnly Property UI As UIObject
Get
用法
Dim instance As _XDocument2
Dim value As UIObject
value = instance.UI
UIObject UI { get; }
属性值
类型:Microsoft.Office.Interop.InfoPath.SemiTrust.UIObject
实现
备注
UI(用户界面)对象提供许多可用于显示自定义对话框和内置对话框的方法。
重要
此成员只能由与当前打开的表单在相同域中运行的表单访问,或者由已授予跨域权限的表单访问。
示例
在以下示例中,XDocument 对象的 UI 属性用于通过使用 Alert 方法来显示一个简单的消息框:
thisXDocument.UI.Alert("Here is the message text.");