共用方式為


ComponentUpgradeFailedException Class

The exception that is thrown when the PerformUpgrade method of a component fails.

命名空間: Microsoft.SqlServer.Dts.Pipeline
組件: Microsoft.SqlServer.PipelineHost (in microsoft.sqlserver.pipelinehost.dll)

語法

'宣告
<SerializableAttribute> _
Public Class ComponentUpgradeFailedException
    Inherits ApplicationException
[SerializableAttribute] 
public class ComponentUpgradeFailedException : ApplicationException
[SerializableAttribute] 
public ref class ComponentUpgradeFailedException : public ApplicationException
/** @attribute SerializableAttribute() */ 
public class ComponentUpgradeFailedException extends ApplicationException
SerializableAttribute 
public class ComponentUpgradeFailedException extends ApplicationException

備註

When the version of a component, specified by the CurrentVersion property, that is stored in the package XML is less than the CurrentVersion property of the component on the local computer, PerformUpgrade is called. This method gives the component the opportunity to upgrade the IDTSComponentMetaData90 in the package XML to match the current version. If the component does not override the base class implementation of PerformUpgrade or if an exception occurs during the component's implementation of this method, then ComponentUpgradeFailedException is thrown.

Inheritance Hierarchy

System.Object
   System.Exception
     System.ApplicationException
      Microsoft.SqlServer.Dts.Pipeline.ComponentUpgradeFailedException

執行緒安全性

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

平台

開發平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

目標平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

請參閱

參考

ComponentUpgradeFailedException Members
Microsoft.SqlServer.Dts.Pipeline Namespace