Condividi tramite


Classe ComErrorException

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

Gerarchia di ereditarietà

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

Spazio dei nomi  Microsoft.SqlServer.Replication
Assembly:  Microsoft.SqlServer.Replication (in Microsoft.SqlServer.Replication.dll)

Sintassi

'Dichiarazione
<SerializableAttribute> _
<ComVisibleAttribute(False)> _
Public NotInheritable Class ComErrorException _
    Inherits COMException
'Utilizzo
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

Nel tipo ComErrorException sono esposti i membri seguenti.

Costruttori

  Nome Descrizione
Metodo pubblico ComErrorException() Initializes a new instance of the ComErrorException class.
Metodo pubblico ComErrorException(String) Initializes a new instance of the ComErrorException class with a specified error message.
Metodo pubblico 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.
Metodo pubblico ComErrorException(Int32, String, Int32, String, String, Guid, String) Initializes a new instance of the ComErrorException class.

In alto

Proprietà

  Nome Descrizione
Proprietà pubblica ComHResult Gets the error code (HRESULT) value associated with this exception.
Proprietà pubblica Data Ereditato da Exception.
Proprietà pubblica Description Gets a description of the error.
Proprietà pubblica ErrorCode Ereditato da ExternalException.
Proprietà pubblica ErrorMessage Gets the error message string.
Proprietà pubblica HelpContext Gets the context of a topic in a Help file.
Proprietà pubblica HelpFile Gets the fully qualified path to a Help file.
Proprietà pubblica HelpLink Ereditato da Exception.
Proprietà pubblica HResult Ereditato da Exception.
Proprietà pubblica InnerException Ereditato da Exception.
Proprietà pubblica InterfaceId Gets the identifier of the COM interface that is the source of the error.
Proprietà pubblica Message Ereditato da Exception.
Proprietà pubblica Source Gets the name of the object or application that is the source of the error. Esegue l'override di Exception.Source.
Proprietà pubblica StackTrace Ereditato da Exception.
Proprietà pubblica TargetSite Ereditato da Exception.

In alto

Metodi

  Nome Descrizione
Metodo pubblico Equals Ereditato da Object.
Metodo pubblico GetBaseException Ereditato da Exception.
Metodo pubblico GetHashCode Ereditato da Object.
Metodo pubblico GetObjectData Sets the specified SerializationInfo with information about the exception. Esegue l'override di Exception.GetObjectData(SerializationInfo, StreamingContext).
Metodo pubblico GetType Ereditato da Exception.
Metodo pubblico ToString Ereditato da COMException.

In alto

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.

Vedere anche

Riferimento

Spazio dei nomi Microsoft.SqlServer.Replication