Solution2.URI 属性

定义

获取 Microsoft InfoPath 表单模板的统一资源标识符 (URI) 。

public:
 property System::String ^ URI { System::String ^ get(); };
public string URI { get; }
member this.URI : string
Public ReadOnly Property URI As String

属性值

实现

URI

示例

在以下示例中,对象的 URI 属性 SolutionObject 用于在消息框中显示表单模板的 URI:

thisXDocument.UI.Alert("URI: " + thisXDocument.Solution.<span class="label">URI</span>);

注解

URI 属性采用统一资源定位器 (URL) 或统一资源名称 (URN) 的形式,具体情况取决于从何处打开表单。

重要提示:此成员只能由与当前打开的窗体在同一域中运行的表单访问,或者由已授予跨域权限的表单访问。

适用于