Share via


Classe ConnectionException

The ConnectionException class is an exception that is raised when an error occurs on the connection to the instance of SQL Server.

Gerarchia di ereditarietà

System. . :: . .Object
  System. . :: . .Exception
    System. . :: . .SystemException
      Microsoft.SqlServer.Management.Common..::..ConnectionException
        Altro...

Spazio dei nomi  Microsoft.SqlServer.Management.Common
Assembly:  Microsoft.SqlServer.ConnectionInfo (in Microsoft.SqlServer.ConnectionInfo.dll)

Sintassi

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

Nel tipo ConnectionException sono esposti i membri seguenti.

Costruttori

  Nome Descrizione
Metodo pubblico ConnectionException() () () () Initializes a new instance of the ConnectionException class.
Metodo pubblico ConnectionException(String) Initializes a new instance of the ConnectionException class with the specified message text.
Metodo protetto ConnectionException(SerializationInfo, StreamingContext) Initializes a new instance of the ConnectionException class with the specified serialization information and streaming context.
Metodo pubblico ConnectionException(String, Exception) Initializes a new instance of the ConnectionException class with the specified message text and inner exception.

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

Thread Safety

Tutti i membri statici pubblici (Shared in Microsoft Visual Basic) di questo tipo sono sicuri per le operazioni a thread multipli. Non è invece garantita la sicurezza dei membri dell'istanza.

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.

Gerarchia di ereditarietà

System. . :: . .Object
  System. . :: . .Exception
    System. . :: . .SystemException
      Microsoft.SqlServer.Management.Common..::..ConnectionException
        Microsoft.SqlServer.Management.Common. . :: . .ChangePasswordFailureException
        Microsoft.SqlServer.Management.Common. . :: . .ConnectionCannotBeChangedException
        Microsoft.SqlServer.Management.Common. . :: . .ConnectionFailureException
        Microsoft.SqlServer.Management.Common. . :: . .DisconnectedConnectionException
        Microsoft.SqlServer.Management.Common. . :: . .ExecutionFailureException
        Microsoft.SqlServer.Management.Common. . :: . .InvalidArgumentException
        Microsoft.SqlServer.Management.Common. . :: . .InvalidPropertyValueException
        Microsoft.SqlServer.Management.Common. . :: . .NotInTransactionException
        Microsoft.SqlServer.Management.Common. . :: . .PropertyNotAvailableException
        Microsoft.SqlServer.Management.Common. . :: . .PropertyNotSetException