CollectionNotAvailableException-Klasse

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

Vererbungshierarchie

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

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
<SerializableAttribute> _
Public NotInheritable Class CollectionNotAvailableException _
    Inherits SmoException
'Usage
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

Der CollectionNotAvailableException-Typ macht folgende Elemente verfügbar.

Konstruktoren

  Name Beschreibung
Öffentliche Methode CollectionNotAvailableException() Initializes a new instance of the CollectionNotAvailableException class.
Öffentliche Methode CollectionNotAvailableException(String) Initializes a new instance of the CollectionNotAvailableException class with the specified message text.
Öffentliche Methode 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.
Öffentliche Methode CollectionNotAvailableException(String, Exception) Initializes a new instance of the CollectionNotAvailableException class with the specified message text and inner exception.

Zum Anfang

Eigenschaften

  Name Beschreibung
Öffentliche Eigenschaft CollectionName Gets the name of the collection that is not available.
Öffentliche Eigenschaft Data (Geerbt von Exception.)
Öffentliche Eigenschaft HelpLink Gets the Help link for further information from Microsoft about the SMO exception. (Geerbt von SmoException.)
Öffentliche Eigenschaft HResult (Geerbt von Exception.)
Öffentliche Eigenschaft InnerException (Geerbt von Exception.)
Öffentliche Eigenschaft Message Gets the message that describes the current exception. (Überschreibt Exception.Message.)
Öffentliche Eigenschaft ServerVersion Gets the version of the instance of Microsoft SQL Server that raised the exception.
Öffentliche Eigenschaft SmoExceptionType Gets the type of exception. (Überschreibt SmoException.SmoExceptionType.)
Öffentliche Eigenschaft Source (Geerbt von Exception.)
Öffentliche Eigenschaft StackTrace (Geerbt von Exception.)
Öffentliche Eigenschaft TargetSite (Geerbt von Exception.)

Zum Anfang

Methoden

  Name Beschreibung
Öffentliche Methode Equals (Geerbt von Object.)
Öffentliche Methode GetBaseException (Geerbt von Exception.)
Öffentliche Methode GetHashCode (Geerbt von Object.)
Öffentliche Methode GetObjectData Override based on the virtual GetObjectData method. . (Überschreibt Exception.GetObjectData(SerializationInfo, StreamingContext).)
Öffentliche Methode GetType (Geerbt von Exception.)
Geschützte Methode SetHelpContext Sets the Help context value for the referenced exception. (Geerbt von SmoException.)
Öffentliche Methode ToString (Geerbt von Exception.)

Zum Anfang

Hinweise

Thread Safety

Alle öffentlichen, statischen Elemente dieses Typs (Shared in Microsoft Visual Basic) sind für Vorgänge mit mehreren Threads sicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.

Beispiele

Behandeln von SMO-Ausnahmen

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic)-Elemente dieses Typs sind Threadsicher. Für Instanzelemente wird die Threadsicherheit nicht gewährleistet.

Siehe auch

Verweis

Microsoft.SqlServer.Management.Smo-Namespace