CollectionNotAvailableException CollectionNotAvailableException CollectionNotAvailableException Class

Definition

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

public ref class CollectionNotAvailableException sealed : Microsoft::SqlServer::Management::Smo::SmoException
public sealed class CollectionNotAvailableException : Microsoft.SqlServer.Management.Smo.SmoException
Public NotInheritable Class CollectionNotAvailableException
Inherits SmoException
Inheritance
Microsoft.SqlServer.Management.Common.SqlServerManagementExceptionMicrosoft.SqlServer.Management.Common.SqlServerManagementExceptionMicrosoft.SqlServer.Management.Common.SqlServerManagementException
CollectionNotAvailableExceptionCollectionNotAvailableExceptionCollectionNotAvailableException

Examples

Handling SMO Exceptions

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.

Constructors

CollectionNotAvailableException() CollectionNotAvailableException() CollectionNotAvailableException()

Initializes a new instance of the CollectionNotAvailableException class.

CollectionNotAvailableException(String) CollectionNotAvailableException(String) CollectionNotAvailableException(String)

Initializes a new instance of the CollectionNotAvailableException class with the specified message text.

CollectionNotAvailableException(String, Exception) CollectionNotAvailableException(String, Exception) CollectionNotAvailableException(String, Exception)

Initializes a new instance of the CollectionNotAvailableException class with the specified message text and inner exception.

CollectionNotAvailableException(String, ServerVersion) CollectionNotAvailableException(String, ServerVersion) 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.

Properties

CollectionName CollectionName CollectionName

Gets the name of the collection that is not available.

HelpLink HelpLink HelpLink

Gets the Help link for further information from Microsoft about the SMO exception.

(Inherited from SmoException)
Message Message Message

Gets the message that describes the current exception.

ServerVersion ServerVersion ServerVersion

Gets the version of the instance of Microsoft SQL Server that raised the exception.

SmoExceptionType SmoExceptionType SmoExceptionType

Gets the type of exception.

Methods

GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext)

Override based on the virtual GetObjectData method.

SetHelpContext(String) SetHelpContext(String) SetHelpContext(String)

Sets the Help context value for the referenced exception.

(Inherited from SmoException)

Applies to