Класс ConnectionException

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

Иерархия наследования

System. . :: . .Object
  System. . :: . .Exception
    System. . :: . .SystemException
      Microsoft.SqlServer.Management.Common..::..ConnectionException
        Подробнее...

Пространство имен:  Microsoft.SqlServer.Management.Common
Сборка:  Microsoft.SqlServer.ConnectionInfo (в Microsoft.SqlServer.ConnectionInfo.dll)

Синтаксис

'Декларация
<SerializableAttribute> _
Public Class ConnectionException _
    Inherits SystemException
'Применение
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

Тип ConnectionException обеспечивает доступ к следующим элементам.

Конструкторы

  Имя Описание
Открытый метод 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.

В начало

Свойства

  Имя Описание
Открытое свойство Data (Производный от Exception.)
Открытое свойство HelpLink (Производный от Exception.)
Защищенное свойство HResult (Производный от Exception.)
Открытое свойство InnerException (Производный от Exception.)
Открытое свойство Message (Производный от Exception.)
Открытое свойство Source (Производный от Exception.)
Открытое свойство StackTrace (Производный от Exception.)
Открытое свойство TargetSite (Производный от Exception.)

В начало

Методы

  Имя Описание
Открытый метод Equals (Производный от Object.)
Защищенный метод Finalize (Производный от Object.)
Открытый метод GetBaseException (Производный от Exception.)
Открытый метод GetHashCode (Производный от Object.)
Открытый метод GetObjectData (Производный от Exception.)
Открытый метод GetType (Производный от Exception.)
Защищенный метод MemberwiseClone (Производный от Object.)
Открытый метод ToString (Производный от Exception.)

В начало

Замечания

Thread Safety

Все общие статические члены этого типа (Shared в Microsoft Visual Basic) можно использовать в многопоточных операциях. Безопасная многопоточная работа с членами экземпляров типа не гарантируется.

Безопасность многопоточности

Любые открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность с элементами экземпляров не гарантируется.

Иерархия наследования

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