VersionUpgradeEvent.DocumentVersion 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取 Microsoft InfoPath 窗体的版本号。
public:
property System::String ^ DocumentVersion { System::String ^ get(); };
public string DocumentVersion { get; }
member this.DocumentVersion : string
Public ReadOnly Property DocumentVersion As String
属性值
示例
在以下示例中,对象的 DocumentVersion 属性 VersionUpgradeEventObject 用于在消息框中显示 InfoPath 窗体的版本号:
[InfoPathEventHandler(EventType=InfoPathEventType.OnVersionUpgrade)]
public void OnVersionUpgrade(VersionUpgradeEvent e)
{
thisXDocument.UI.Alert("The form version: " + e.<span class="label">DocumentVersion</span> +
"\nThe form template version: " + e.SolutionVersion);
e.ReturnStatus = true;
}
注解
此属性只能在事件期间 OnVersionUpgrade 使用。
重要提示:此成员只能由与当前打开的窗体在同一域中运行的表单访问,或者由已授予跨域权限的表单访问。
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈