Freigeben über


ConnectionException-Klasse

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

Vererbungshierarchie

System.Object
  System.Exception
    System.SystemException
      Microsoft.SqlServer.Management.Common.ConnectionException
        Mehr…

Namespace:  Microsoft.SqlServer.Management.Common
Assembly:  Microsoft.SqlServer.ConnectionInfo (in Microsoft.SqlServer.ConnectionInfo.dll)

Syntax

'Declaration
<SerializableAttribute> _
Public Class ConnectionException _
    Inherits SystemException
'Usage
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

Der ConnectionException-Typ macht folgende Elemente verfügbar.

Konstruktoren

  Name Beschreibung
Öffentliche Methode ConnectionException() Initializes a new instance of the ConnectionException class.
Öffentliche Methode ConnectionException(String) Initializes a new instance of the ConnectionException class with the specified message text.
Geschützte Methode ConnectionException(SerializationInfo, StreamingContext) Initializes a new instance of the ConnectionException class with the specified serialization information and streaming context.
Öffentliche Methode ConnectionException(String, Exception) Initializes a new instance of the ConnectionException class with the specified message text and inner exception.

Zum Anfang

Eigenschaften

  Name Beschreibung
Öffentliche Eigenschaft Data (Geerbt von Exception.)
Öffentliche Eigenschaft HelpLink (Geerbt von Exception.)
Öffentliche Eigenschaft HResult (Geerbt von Exception.)
Öffentliche Eigenschaft InnerException (Geerbt von Exception.)
Öffentliche Eigenschaft Message (Geerbt von Exception.)
Öffentliche Eigenschaft Source (Geerbt von Exception.)
Öffentliche Eigenschaft StackTrace (Geerbt von Exception.)
Öffentliche Eigenschaft TargetSite (Geerbt von Exception.)

Zum Anfang

Methoden

  Name Beschreibung
Öffentliche Methode Equals (Geerbt von Object.)
Geschützte Methode Finalize (Geerbt von Object.)
Öffentliche Methode GetBaseException (Geerbt von Exception.)
Öffentliche Methode GetHashCode (Geerbt von Object.)
Öffentliche Methode GetObjectData Sicherheitskritisch (Geerbt von Exception.)
Öffentliche Methode GetType (Geerbt von Exception.)
Geschützte Methode MemberwiseClone (Geerbt von Object.)
Öffentliche Methode ToString (Geerbt von Exception.)

Zum Anfang

Ereignisse

  Name Beschreibung
Geschütztes Ereignis SerializeObjectState (Geerbt von Exception.)

Zum Anfang

Hinweise

Thread Safety

Alle öffentlichen, statischen Elemente dieses Typs (Shared in Microsoft Visual Basic) sind für Vorgänge mit mehreren Threads sicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.

Beispiele

Behandeln von SMO-Ausnahmen

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic)-Elemente dieses Typs sind Threadsicher. Für Instanzelemente wird die Threadsicherheit nicht gewährleistet.

Siehe auch

Verweis

Microsoft.SqlServer.Management.Common-Namespace

Vererbungshierarchie

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