Класс CollectorException

The CollectorException class is the base class for all data collector exceptions.

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

System.Object
  System.Exception
    Microsoft.SqlServer.Management.Common.SqlServerManagementException
      Microsoft.SqlServer.Management.Collector.CollectorException

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

Синтаксис

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

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

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

  Имя Описание
Открытый метод CollectorException() Creates an instance of the exception.
Открытый метод CollectorException(String) The error message.
Открытый метод CollectorException(SerializationInfo, StreamingContext) Instantiates an instance of the CollectorException class, passing info and context as parameters.
Открытый метод CollectorException(String, Exception) Creates a collection object and passes the error message and the exception that is causing the error.

В начало

Свойства

  Имя Описание
Открытое свойство Data (Производный от Exception.)
Открытое свойство HelpLink Gets the link to the Microsoft SQL Server help web site based on the exception. (Переопределяет Exception.HelpLink.)
Открытое свойство HResult (Производный от Exception.)
Открытое свойство InnerException (Производный от Exception.)
Открытое свойство Message (Производный от Exception.)
Защищенное свойствоСтатический элемент ProdVer Gets the version of the product.
Открытое свойство Source (Производный от Exception.)
Открытое свойство StackTrace (Производный от Exception.)
Открытое свойство TargetSite (Производный от Exception.)

В начало

Методы

  Имя Описание
Открытый метод Equals (Производный от Object.)
Защищенный метод Finalize (Производный от Object.)
Открытый метод GetBaseException (Производный от Exception.)
Открытый метод GetHashCode (Производный от Object.)
Открытый метод GetObjectData Важный элемент безопасности. (Производный от Exception.)
Открытый метод GetType (Производный от Exception.)
Защищенный метод MemberwiseClone (Производный от Object.)
Защищенный метод SetHelpContext Sets the help context based on the resource string that is passed.
Открытый метод ToString (Производный от Exception.)

В начало

События

  Имя Описание
Защищенное событие SerializeObjectState (Производный от Exception.)

В начало

Замечания

CollectorException inherits from SqlServerManagementException.

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

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

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

См. также

Справочник

Пространство имен Microsoft.SqlServer.Management.Collector