Classe CollectionNotAvailableException

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

Hierarquia de herança

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 (em Microsoft.SqlServer.Smo.dll)

Sintaxe

'Declaração
<SerializableAttribute> _
Public NotInheritable Class CollectionNotAvailableException _
    Inherits SmoException
'Uso
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

O tipo CollectionNotAvailableException expõe os membros a seguir.

Construtores

  Nome Descrição
Método público CollectionNotAvailableException() Initializes a new instance of the CollectionNotAvailableException class.
Método público CollectionNotAvailableException(String) Initializes a new instance of the CollectionNotAvailableException class with the specified message text.
Método público 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étodo público CollectionNotAvailableException(String, Exception) Initializes a new instance of the CollectionNotAvailableException class with the specified message text and inner exception.

Início

Propriedades

  Nome Descrição
Propriedade pública CollectionName Gets the name of the collection that is not available.
Propriedade pública Data (Herdado de Exception.)
Propriedade pública HelpLink Gets the Help link for further information from Microsoft about the SMO exception. (Herdado de SmoException.)
Propriedade pública HResult (Herdado de Exception.)
Propriedade pública InnerException (Herdado de Exception.)
Propriedade pública Message Gets the message that describes the current exception. (Substitui Exception.Message.)
Propriedade pública ServerVersion Gets the version of the instance of Microsoft SQL Server that raised the exception.
Propriedade pública SmoExceptionType Gets the type of exception. (Substitui SmoException.SmoExceptionType.)
Propriedade pública Source (Herdado de Exception.)
Propriedade pública StackTrace (Herdado de Exception.)
Propriedade pública TargetSite (Herdado de Exception.)

Início

Métodos

  Nome Descrição
Método público Equals (Herdado de Object.)
Método público GetBaseException (Herdado de Exception.)
Método público GetHashCode (Herdado de Object.)
Método público GetObjectData Override based on the virtual GetObjectData method. . (Substitui Exception.GetObjectData(SerializationInfo, StreamingContext).)
Método público GetType (Herdado de Exception.)
Método protegido SetHelpContext Sets the Help context value for the referenced exception. (Herdado de SmoException.)
Método público ToString (Herdado de Exception.)

Início

Comentários

Thread Safety

Qualquer membro público estático (Compartilhado no Microsoft Visual Basic) desse tipo é seguro para operações multi-threaded. Não há garantia de que qualquer membro de instância seja seguro para threads.

Exemplos

Manipulando exceções SMO

Segurança de thread

Qualquer membro público static (Shared no Visual Basic) desse tipo é seguro para threads. Não há garantia de que qualquer membro de instância seja seguro para threads.

Consulte também

Referência

Namespace Microsoft.SqlServer.Management.Smo