Share via


Classe CollectorException

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

Hiérarchie d'héritage

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

Espace de noms :  Microsoft.SqlServer.Management.Collector
Assembly :  Microsoft.SqlServer.Management.Collector (en Microsoft.SqlServer.Management.Collector.dll)

Syntaxe

'Déclaration
<SerializableAttribute> _
Public Class CollectorException _
    Inherits SqlServerManagementException
'Utilisation
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

Le type CollectorException expose les membres suivants.

Constructeurs

  Nom Description
Méthode publique CollectorException() Creates an instance of the exception.
Méthode publique CollectorException(String) The error message.
Méthode publique CollectorException(SerializationInfo, StreamingContext) Instantiates an instance of the CollectorException class, passing info and context as parameters.
Méthode publique CollectorException(String, Exception) Creates a collection object and passes the error message and the exception that is causing the error.

Haut de la page

Propriétés

  Nom Description
Propriété publique Data (hérité de Exception.)
Propriété publique HelpLink Gets the link to the Microsoft SQL Server help web site based on the exception. (remplace Exception.HelpLink.)
Propriété publique HResult (hérité de Exception.)
Propriété publique InnerException (hérité de Exception.)
Propriété publique Message (hérité de Exception.)
Propriété protégéeMembre statique ProdVer Gets the version of the product.
Propriété publique Source (hérité de Exception.)
Propriété publique StackTrace (hérité de Exception.)
Propriété publique TargetSite (hérité de Exception.)

Haut de la page

Méthodes

  Nom Description
Méthode publique Equals (hérité de Object.)
Méthode protégée Finalize (hérité de Object.)
Méthode publique GetBaseException (hérité de Exception.)
Méthode publique GetHashCode (hérité de Object.)
Méthode publique GetObjectData Informations critiques de sécurité. (hérité de Exception.)
Méthode publique GetType (hérité de Exception.)
Méthode protégée MemberwiseClone (hérité de Object.)
Méthode protégée SetHelpContext Sets the help context based on the resource string that is passed.
Méthode publique ToString (hérité de Exception.)

Haut de la page

Événements

  Nom Description
Événement protégé SerializeObjectState (hérité de Exception.)

Haut de la page

Notes

CollectorException inherits from SqlServerManagementException.

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

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.

Voir aussi

Référence

Espace de noms Microsoft.SqlServer.Management.Collector