Класс SqlServerManagementException

The SqlServerManagementException class is an exception that is raised when a SQL Server management error is encountered on the connection to the server.

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

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

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

Синтаксис

'Декларация
Public Class SqlServerManagementException _
    Inherits Exception
'Применение
Dim instance As SqlServerManagementException
public class SqlServerManagementException : Exception
public ref class SqlServerManagementException : public Exception
type SqlServerManagementException =  
    class
        inherit Exception
    end
public class SqlServerManagementException extends Exception

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

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

  Имя Описание
Открытый метод SqlServerManagementException() () () () Initializes a new instance of the SqlServerManagementException class.
Открытый метод SqlServerManagementException(String) Initializes a new instance of the SqlServerManagementException class with the specified message text.
Защищенный метод SqlServerManagementException(SerializationInfo, StreamingContext) Initializes a new instance of the SqlServerManagementException class with the specified serialization information and streaming context.
Открытый метод SqlServerManagementException(String, Exception) Initializes a new instance of the SqlServerManagementException class with the specified message text and inner exception.

В начало

Свойства

  Имя Описание
Открытое свойство Data (Производный от Exception.)
Открытое свойство HelpLink (Производный от Exception.)
Защищенное свойство HResult (Производный от Exception.)
Открытое свойство InnerException (Производный от Exception.)
Открытое свойство Message (Производный от Exception.)
Открытое свойствоСтатический элемент ProductName Gets the name of the product that caused the 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
    Microsoft.SqlServer.Management.Common..::..SqlServerManagementException
      Microsoft.SqlServer.Management.Common. . :: . .TransferException
      Microsoft.SqlServer.Management.Dac. . :: . .DacException
      Microsoft.SqlServer.Management.Dmf. . :: . .DmfException
      Microsoft.SqlServer.Management.RegisteredServers. . :: . .RegisteredServerException
      Microsoft.SqlServer.Management.Sdk.Sfc. . :: . .EnumeratorException
      Microsoft.SqlServer.Management.Sdk.Sfc. . :: . .SfcException
      Microsoft.SqlServer.Management.Smo. . :: . .SmoException
      Microsoft.SqlServer.Management.Trace. . :: . .SqlTraceException
      Microsoft.SqlServer.Management.Utility. . :: . .UtilityException