Classe CollectionNotAvailableException

The CollectionNotAvailableException class is an exception that is raised when an attempt is made to retrieve a collection that is not available.

Hiérarchie d'héritage

System. . :: . .Object
  System. . :: . .Exception
    Microsoft.SqlServer.Management.Common. . :: . .SqlServerManagementException
      Microsoft.SqlServer.Management.Smo. . :: . .SmoException
        Microsoft.SqlServer.Management.Smo..::..CollectionNotAvailableException

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

Syntaxe

'Déclaration
<SerializableAttribute> _
Public NotInheritable Class CollectionNotAvailableException _
    Inherits SmoException
'Utilisation
Dim instance As CollectionNotAvailableException
[SerializableAttribute]
public sealed class CollectionNotAvailableException : SmoException
[SerializableAttribute]
public ref class CollectionNotAvailableException sealed : public SmoException
[<SealedAttribute>]
[<SerializableAttribute>]
type CollectionNotAvailableException =  
    class
        inherit SmoException
    end
public final class CollectionNotAvailableException extends SmoException

Le type CollectionNotAvailableException expose les membres suivants.

Constructeurs

  Nom Description
Méthode publique CollectionNotAvailableException() () () () Initializes a new instance of the CollectionNotAvailableException class.
Méthode publique CollectionNotAvailableException(String) Initializes a new instance of the CollectionNotAvailableException class with the specified message text.
Méthode publique CollectionNotAvailableException(String, ServerVersion) Initializes a new instance of the CollectionNotAvailableException class with the specified collection and the version of the instance of Microsoft SQL Server.
Méthode publique CollectionNotAvailableException(String, Exception) Initializes a new instance of the CollectionNotAvailableException class with the specified message text and inner exception.

Haut de la page

Propriétés

  Nom Description
Propriété publique CollectionName Gets the name of the collection that is not available.
Propriété publique Data (hérité de Exception.)
Propriété publique HelpLink Gets the Help link for further information from Microsoft about the SMO exception. (hérité de SmoException.)
Propriété protégée HResult (hérité de Exception.)
Propriété publique InnerException (hérité de Exception.)
Propriété publique Message Gets the message that describes the current exception. (remplace Exception. . :: . .Message.)
Propriété publique ServerVersion Gets the version of the instance of Microsoft SQL Server that raised the exception.
Propriété publique SmoExceptionType Gets the type of exception. (remplace SmoException. . :: . .SmoExceptionType.)
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 Override based on the virtual GetObjectData method. . (remplace Exception. . :: . .GetObjectData(SerializationInfo, StreamingContext).)
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 value for the referenced exception. (hérité de SmoException.)
Méthode publique ToString (hérité de Exception.)

Haut de la page

Notes

Thread Safety

Tout membre statique public (Partagé dans Microsoft Visual Basic) de ce type est sûr dans le cadre des opérations à plusieurs threads. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.

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.