Partager 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.

Espace de noms :  Microsoft.SqlServer.Management.Common
Assembly :  Microsoft.SqlServer.ConnectionInfo (dans Microsoft.SqlServer.ConnectionInfo.dll)

Syntaxe

'Déclaration
<SerializableAttribute> _
Public Class ConnectionException _
    Inherits SystemException
'Utilisation
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

Notes

Thread Safety

Tout membre statique public (Partagé dans Microsoft Visual Basic) de ce type est sûr dans le cadre des opérations à plusieurs threads. Tous les membres de l'instance ne sont pas garantis comme sûrs.

Hiérarchie d'héritage

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. . :: . .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

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Il n'est pas garanti que les membres d'instance soient thread-safe.