Partager via


Classe DtsTaskException

The exception that is thrown when an error occurs in a task.

Hiérarchie d'héritage

System. . :: . .Object
  System. . :: . .Exception
    Microsoft.SqlServer.Dts.Runtime. . :: . .DtsException
      Microsoft.SqlServer.Dts.Runtime..::..DtsTaskException

Espace de noms :  Microsoft.SqlServer.Dts.Runtime
Assembly :  Microsoft.SqlServer.ManagedDTS (en Microsoft.SqlServer.ManagedDTS.dll)

Syntaxe

'Déclaration
<SerializableAttribute> _
Public Class DtsTaskException _
    Inherits DtsException
'Utilisation
Dim instance As DtsTaskException
[SerializableAttribute]
public class DtsTaskException : DtsException
[SerializableAttribute]
public ref class DtsTaskException : public DtsException
[<SerializableAttribute>]
type DtsTaskException =  
    class
        inherit DtsException
    end
public class DtsTaskException extends DtsException

Le type DtsTaskException expose les membres suivants.

Constructeurs

  Nom Description
Méthode publique DtsTaskException(COMException) This constructor is used when your custom task contains a COM exception.
Méthode publique DtsTaskException(String) This constructor is used when your custom task contains a string version of the exception.

Haut de la page

Propriétés

  Nom Description
Propriété publique Data (hérité de Exception.)
Propriété publique ErrorCode Gets the error code that creates the appropriate exception class. This field is read-only. (hérité de DtsException.)
Propriété publique HelpLink (hérité de Exception.)
Propriété protégée HResult (hérité de Exception.)
Propriété publique InnerException (hérité de Exception.)
Propriété publique Message (hérité de Exception.)
Propriété publique Source (hérité de Exception.)
Propriété publique StackTrace (hérité de Exception.)
Propriété publique TargetSite (hérité de Exception.)

Haut de la page

Méthodes

  Nom Description
Méthode publique Equals (hérité de Object.)
Méthode protégée Finalize (hérité de Object.)
Méthode publique GetBaseException (hérité de Exception.)
Méthode publique GetHashCode (hérité de Object.)
Méthode publique GetObjectData (hérité de Exception.)
Méthode publique GetType (hérité de Exception.)
Méthode protégée MemberwiseClone (hérité de Object.)
Méthode publique ToString (hérité de Exception.)

Haut de la page

Notes

This class is instantiated by the DtsException class when an error occurs in a component.

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.