Partager via


Classe ComErrorException

The exception that is thrown when a general error is raised by a replication agent.

Hiérarchie d'héritage

System.Object
  System.Exception
    System.SystemException
      System.Runtime.InteropServices.ExternalException
        System.Runtime.InteropServices.COMException
          Microsoft.SqlServer.Replication.ComErrorException

Espace de noms :  Microsoft.SqlServer.Replication
Assembly :  Microsoft.SqlServer.Replication (en Microsoft.SqlServer.Replication.dll)

Syntaxe

'Déclaration
<SerializableAttribute> _
<ComVisibleAttribute(False)> _
Public NotInheritable Class ComErrorException _
    Inherits COMException
'Utilisation
Dim instance As ComErrorException
[SerializableAttribute]
[ComVisibleAttribute(false)]
public sealed class ComErrorException : COMException
[SerializableAttribute]
[ComVisibleAttribute(false)]
public ref class ComErrorException sealed : public COMException
[<SealedAttribute>]
[<SerializableAttribute>]
[<ComVisibleAttribute(false)>]
type ComErrorException =  
    class 
        inherit COMException 
    end
public final class ComErrorException extends COMException

Le type ComErrorException expose les membres suivants.

Constructeurs

  Nom Description
Méthode publique ComErrorException() Initializes a new instance of the ComErrorException class.
Méthode publique ComErrorException(String) Initializes a new instance of the ComErrorException class with a specified error message.
Méthode publique ComErrorException(String, Exception) Initializes a new instance of the ComErrorException class with a specified error message and a reference to the inner exception that is the cause of this exception.
Méthode publique ComErrorException(Int32, String, Int32, String, String, Guid, String) Initializes a new instance of the ComErrorException class.

Haut de la page

Propriétés

  Nom Description
Propriété publique ComHResult Gets the error code (HRESULT) value associated with this exception.
Propriété publique Data (hérité de Exception.)
Propriété publique Description Gets a description of the error.
Propriété publique ErrorCode (hérité de ExternalException.)
Propriété publique ErrorMessage Gets the error message string.
Propriété publique HelpContext Gets the context of a topic in a Help file.
Propriété publique HelpFile Gets the fully qualified path to a Help file.
Propriété publique HelpLink (hérité de Exception.)
Propriété publique HResult (hérité de Exception.)
Propriété publique InnerException (hérité de Exception.)
Propriété publique InterfaceId Gets the identifier of the COM interface that is the source of the error.
Propriété publique Message (hérité de Exception.)
Propriété publique Source Gets the name of the object or application that is the source of the error. (remplace Exception.Source.)
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 publique GetBaseException (hérité de Exception.)
Méthode publique GetHashCode (hérité de Object.)
Méthode publique GetObjectData Sets the specified SerializationInfo with information about the exception. (remplace Exception.GetObjectData(SerializationInfo, StreamingContext).)
Méthode publique GetType (hérité de Exception.)
Méthode publique ToString (hérité de COMException.)

Haut de la page

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.

Voir aussi

Référence

Espace de noms Microsoft.SqlServer.Replication