Classe ConnectionException
The ConnectionException class is an exception that is raised when an error occurs on the connection to the instance of SQL Server.
Hiérarchie d'héritage
System. . :: . .Object
System. . :: . .Exception
System. . :: . .SystemException
Microsoft.SqlServer.Management.Common..::..ConnectionException
Plus...
Espace de noms : Microsoft.SqlServer.Management.Common
Assembly : Microsoft.SqlServer.ConnectionInfo (en 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
Le type ConnectionException expose les membres suivants.
Constructeurs
Nom | Description | |
---|---|---|
ConnectionException() () () () | Initializes a new instance of the ConnectionException class. | |
ConnectionException(String) | Initializes a new instance of the ConnectionException class with the specified message text. | |
ConnectionException(SerializationInfo, StreamingContext) | Initializes a new instance of the ConnectionException class with the specified serialization information and streaming context. | |
ConnectionException(String, Exception) | Initializes a new instance of the ConnectionException class with the specified message text and inner exception. |
Haut de la page
Propriétés
Nom | Description | |
---|---|---|
Data | (hérité de Exception.) | |
HelpLink | (hérité de Exception.) | |
HResult | (hérité de Exception.) | |
InnerException | (hérité de Exception.) | |
Message | (hérité de Exception.) | |
Source | (hérité de Exception.) | |
StackTrace | (hérité de Exception.) | |
TargetSite | (hérité de Exception.) |
Haut de la page
Méthodes
Nom | Description | |
---|---|---|
Equals | (hérité de Object.) | |
Finalize | (hérité de Object.) | |
GetBaseException | (hérité de Exception.) | |
GetHashCode | (hérité de Object.) | |
GetObjectData | (hérité de Exception.) | |
GetType | (hérité de Exception.) | |
MemberwiseClone | (hérité de Object.) | |
ToString | (hérité de Exception.) |
Haut de la page
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 étant thread-safe.
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.
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. . :: . .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