CollectionNotAvailableException Class
The CollectionNotAvailableException class is an exception that is raised when an attempt is made to retrieve a collection that is not available.
Inheritance Hierarchy
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
The CollectionNotAvailableException type exposes the following members.
Constructors
Name | Description | |
---|---|---|
CollectionNotAvailableException() | Initializes a new instance of the CollectionNotAvailableException class. | |
CollectionNotAvailableException(String) | Initializes a new instance of the CollectionNotAvailableException class with the specified message text. | |
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. | |
CollectionNotAvailableException(String, Exception) | Initializes a new instance of the CollectionNotAvailableException class with the specified message text and inner exception. |
Top
Properties
Name | Description | |
---|---|---|
CollectionName | Gets the name of the collection that is not available. | |
Data | (Inherited from Exception.) | |
HelpLink | Gets the Help link for further information from Microsoft about the SMO exception. (Inherited from SmoException.) | |
HResult | (Inherited from Exception.) | |
InnerException | (Inherited from Exception.) | |
Message | Gets the message that describes the current exception. (Overrides Exception.Message.) | |
ServerVersion | Gets the version of the instance of Microsoft SQL Server that raised the exception. | |
SmoExceptionType | Gets the type of exception. (Overrides SmoException.SmoExceptionType.) | |
Source | (Inherited from Exception.) | |
StackTrace | (Inherited from Exception.) | |
TargetSite | (Inherited from Exception.) |
Top
Methods
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
GetBaseException | (Inherited from Exception.) | |
GetHashCode | (Inherited from Object.) | |
GetObjectData | Override based on the virtual GetObjectData method. . (Overrides Exception.GetObjectData(SerializationInfo, StreamingContext).) | |
GetType | (Inherited from Exception.) | |
SetHelpContext | Sets the Help context value for the referenced exception. (Inherited from SmoException.) | |
ToString | (Inherited from Exception.) |
Top
Remarks
Thread Safety
Any public static (Shared in Microsoft Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.
Examples
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.