Export (0) Print
Expand All

CollectionNotAvailableException Class

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

Object
  Exception
    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)

[<SealedAttribute>]
[<SerializableAttribute>]
type CollectionNotAvailableException =  
    class 
        inherit SmoException 
    end

The CollectionNotAvailableException type exposes the following members.

  NameDescription
Public methodCollectionNotAvailableException()Initializes a new instance of the CollectionNotAvailableException class.
Public methodCollectionNotAvailableException(String)Initializes a new instance of the CollectionNotAvailableException class with the specified message text.
Public methodCollectionNotAvailableException(String, ServerVersion)Initializes a new instance of the CollectionNotAvailableException class with the specified collection and the version of the instance of Microsoft SQL Server.
Public methodCollectionNotAvailableException(String, Exception)Initializes a new instance of the CollectionNotAvailableException class with the specified message text and inner exception.
Top

  NameDescription
Public propertyCollectionNameGets the name of the collection that is not available.
Public propertyData (Inherited from Exception.)
Public propertyHelpLinkGets the Help link for further information from Microsoft about the SMO exception. (Inherited from SmoException.)
Public propertyHResult (Inherited from Exception.)
Public propertyInnerException (Inherited from Exception.)
Public propertyMessageGets the message that describes the current exception. (Overrides ExceptionMessage.)
Public propertyServerVersionGets the version of the instance of Microsoft SQL Server that raised the exception.
Public propertySmoExceptionTypeGets the type of exception. (Overrides SmoException.SmoExceptionType.)
Public propertySource (Inherited from Exception.)
Public propertyStackTrace (Inherited from Exception.)
Public propertyTargetSite (Inherited from Exception.)
Top

  NameDescription
Public methodEquals (Inherited from Object.)
Public methodGetBaseException (Inherited from Exception.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetObjectDataOverride based on the virtual GetObjectData method. . (Overrides ExceptionGetObjectData(SerializationInfo, StreamingContext).)
Public methodGetType (Inherited from Exception.)
Protected methodSetHelpContextSets the Help context value for the referenced exception. (Inherited from SmoException.)
Public methodToString (Inherited from Exception.)
Top

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft