Condividi tramite


Classe ComponentUpgradeFailedException

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

Gerarchia di ereditarietà

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

Spazio dei nomi  Microsoft.SqlServer.Dts.Pipeline
Assembly:  Microsoft.SqlServer.PipelineHost (in Microsoft.SqlServer.PipelineHost.dll)

Sintassi

'Dichiarazione
<SerializableAttribute> _
Public Class ComponentUpgradeFailedException _
    Inherits ApplicationException
'Utilizzo
Dim instance As ComponentUpgradeFailedException
[SerializableAttribute]
public class ComponentUpgradeFailedException : ApplicationException
[SerializableAttribute]
public ref class ComponentUpgradeFailedException : public ApplicationException
[<SerializableAttribute>]
type ComponentUpgradeFailedException =  
    class
        inherit ApplicationException
    end
public class ComponentUpgradeFailedException extends ApplicationException

Nel tipo ComponentUpgradeFailedException sono esposti i membri seguenti.

Costruttori

  Nome Descrizione
Metodo pubblico ComponentUpgradeFailedException Initializes a new instance of the ComponentUpgradeFailedException class with the IdentificationString of the component that failed to upgrade.

In alto

Proprietà

  Nome Descrizione
Proprietà pubblica Data Ereditato da Exception.
Proprietà pubblica HelpLink Ereditato da Exception.
Proprietà protetta HResult Ereditato da Exception.
Proprietà pubblica InnerException Ereditato da Exception.
Proprietà pubblica Message Ereditato da Exception.
Proprietà pubblica Source Ereditato da Exception.
Proprietà pubblica StackTrace Ereditato da Exception.
Proprietà pubblica TargetSite Ereditato da Exception.

In alto

Metodi

  Nome Descrizione
Metodo pubblico Equals Ereditato da Object.
Metodo protetto Finalize Ereditato da Object.
Metodo pubblico GetBaseException Ereditato da Exception.
Metodo pubblico GetHashCode Ereditato da Object.
Metodo pubblico GetObjectData Ereditato da Exception.
Metodo pubblico GetType Ereditato da Exception.
Metodo protetto MemberwiseClone Ereditato da Object.
Metodo pubblico ToString Ereditato da Exception.

In alto

Osservazioni

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 IDTSComponentMetaData100 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.

Protezione dei thread

I membri static (Shared in Visual Basic) pubblici di questo tipo sono affidabili. Non è invece garantita la sicurezza dei membri dell'istanza.