VersionUpgradeEvent.ReturnStatus 属性

获取或设置 OnVersionUpgrade 事件的返回状态。

命名空间:  Microsoft.Office.Interop.InfoPath.SemiTrust
程序集:  Microsoft.Office.Interop.InfoPath.SemiTrust(位于 Microsoft.Office.Interop.InfoPath.SemiTrust.dll 中)

语法

声明
Property ReturnStatus As Boolean
    Get
    Set
用法
Dim instance As VersionUpgradeEvent
Dim value As Boolean

value = instance.ReturnStatus

instance.ReturnStatus = value
bool ReturnStatus { get; set; }

属性值

类型:System.Boolean

实现

DocReturnEvent.ReturnStatus

备注

如果 ReturnStatus 属性设置为 false,OnVersionUpgrade 事件将失败,从而无法打开表单。如果设置为 true,OnVersionUpgrade 事件将成功。

重要

此成员只能由与当前打开的表单在相同域中运行的表单访问,或者由已授予跨域权限的表单访问。

示例

在以下示例中,VersionUpgradeEventObject 对象的 ReturnStatus 属性用于指出 OnVersionUpgrade 事件未成功:

[InfoPathEventHandler(EventType=InfoPathEventType.OnVersionUpgrade)]
public void OnVersionUpgrade(VersionUpgradeEvent e)
{
 e.ReturnStatus = false;   
}

另请参阅

引用

VersionUpgradeEvent 接口

VersionUpgradeEvent 成员

ReturnStatus 重载

Microsoft.Office.Interop.InfoPath.SemiTrust 命名空间