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 | |
---|---|---|
FailedOperationException() | Initializes a new instance of the FailedOperationException class. | |
FailedOperationException(String) | Initializes a new instance of the FailedOperationException class that has the specified message. | |
FailedOperationException(String, Exception) | Initializes a new instance of the FailedOperationException class that has the specified message and inner exception. | |
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. | |
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 | |
---|---|---|
Data | (Herdado de Exception.) | |
FailedObject | Gets or sets the object on which the operation failed. | |
HelpLink | Gets the Help link for further information from Microsoft about the SMO exception. (Herdado de SmoException.) | |
HResult | (Herdado de Exception.) | |
InnerException | (Herdado de Exception.) | |
Message | Gets the message text that explains the exception. (Substitui Exception.Message.) | |
Operation | Gets or sets the operation that failed. | |
SmoExceptionType | Gets the exception type. (Substitui SmoException.SmoExceptionType.) | |
Source | (Herdado de Exception.) | |
StackTrace | (Herdado de Exception.) | |
TargetSite | (Herdado de Exception.) |
Início
Métodos
Nome | Descrição | |
---|---|---|
Equals | (Herdado de Object.) | |
GetBaseException | (Herdado de Exception.) | |
GetHashCode | (Herdado de Object.) | |
GetObjectData | Override based on the virtual SerializationInfo method GetObjectData. (Substitui Exception.GetObjectData(SerializationInfo, StreamingContext).) | |
GetType | (Herdado de Exception.) | |
SetHelpContext | Sets the Help context value for the referenced exception. (Herdado de SmoException.) | |
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
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.