Поделиться через


Класс SqlTraceException

The SQLTraceException class represents the general exception raised by the SMO trace objects.

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

Синтаксис

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

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

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

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

В начало

Свойства

  Имя Описание
Открытое свойство Data (Производный от Exception.)
Открытое свойство HelpLink (Производный от Exception.)
Защищенное свойство HResult (Производный от Exception.)
Открытое свойство InnerException (Производный от Exception.)
Открытое свойство Message (Производный от Exception.)
Защищенное свойствоСтатический элемент ProdVer Gets a String value that specifies the product version.
Открытое свойство Source (Производный от Exception.)
Открытое свойство StackTrace (Производный от Exception.)
Открытое свойство TargetSite (Производный от Exception.)

В начало

Методы

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

В начало

Замечания

This class represents the main exception class in the SMO trace objects.

Thread Safety

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

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

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