ComponentUpgradeFailedException 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
当组件方法失败时 PerformUpgrade(Int32) 抛出的异常。
public ref class ComponentUpgradeFailedException : ApplicationException
[System.Serializable]
public class ComponentUpgradeFailedException : ApplicationException
[<System.Serializable>]
type ComponentUpgradeFailedException = class
inherit ApplicationException
Public Class ComponentUpgradeFailedException
Inherits ApplicationException
- 继承
-
ComponentUpgradeFailedException
- 属性
注解
当存储在包XML中的组件版本(由 CurrentVersion 属性指定)小于 CurrentVersion 本地计算机组件的属性时, PerformUpgrade 调用。 这种方法让组件有机会将包中的 XML 升级 IDTSComponentMetaData100 到与当前版本一致。 如果组件没有覆盖该方法的 PerformUpgrade 基类实现,或者在组件实现该方法时发生异常,则 ComponentUpgradeFailedException 会被抛出。
构造函数
| 名称 | 说明 |
|---|---|
| ComponentUpgradeFailedException(String) |
初始化该类的新实例 ComponentUpgradeFailedException ,使用 IdentificationString 未能升级的组件。 |