Classe FailedOperationException

The FailedOperationException class represents the exception raised when an operation fails. Failed database operations include CREATE, DROP, ALTER, SCRIPT, REFRESH, RENAME. This exception can also be raised when some of the public methods in SMO fail.

Hierarquia de herança

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

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

Sintaxe

'Declaração
<SerializableAttribute> _
Public NotInheritable Class FailedOperationException _
    Inherits SmoException
'Uso
Dim instance As FailedOperationException
[SerializableAttribute]
public sealed class FailedOperationException : SmoException
[SerializableAttribute]
public ref class FailedOperationException sealed : public SmoException
[<SealedAttribute>]
[<SerializableAttribute>]
type FailedOperationException =  
    class 
        inherit SmoException 
    end
public final class FailedOperationException extends SmoException

O tipo FailedOperationException expõe os membros a seguir.

Construtores

  Nome Descrição
Método público FailedOperationException() Initializes a new instance of the FailedOperationException class.
Método público FailedOperationException(String) Initializes a new instance of the FailedOperationException class that has the specified message.
Método público FailedOperationException(String, Exception) Initializes a new instance of the FailedOperationException class that has the specified message and inner exception.
Método público FailedOperationException(String, Object, Exception) Initializes a new instance of the FailedOperationException class with the specified object on which the specified operation failed and that has the specified inner exception.
Método público FailedOperationException(String, Object, Exception, String) Initializes a new instance of the FailedOperationException class that has the specified object on which the specified operation failed, and that has the specified inner exception and reason for occurring.

Início

Propriedades

  Nome Descrição
Propriedade pública Data (Herdado de Exception.)
Propriedade pública FailedObject Gets or sets the object on which the operation failed.
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 text that explains the exception. (Substitui Exception.Message.)
Propriedade pública Operation Gets or sets the operation that failed.
Propriedade pública SmoExceptionType Gets the exception type. (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 SerializationInfo method GetObjectData. (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