VersionUpgradeEvent.SolutionVersion 属性

定义

获取 Microsoft InfoPath 表单模板的版本号。

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

属性值

示例

在以下示例中,对象的 SolutionVersion 属性 VersionUpgradeEventObject 用于在消息框中显示 InfoPath 表单模板的版本号:

[InfoPathEventHandler(EventType=InfoPathEventType.OnVersionUpgrade)]
public void OnVersionUpgrade(VersionUpgradeEvent e)
{
 thisXDocument.UI.Alert("The form version: " + e.DocumentVersion + 
  "\nThe form template version: " + e.<span class="label">SolutionVersion</span>);
 e.ReturnStatus = true;   
}

注解

此属性只能在事件期间 OnVersionUpgrade 使用。

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

适用于