Clase 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.
Jerarquía de herencia
System.Object
System.Exception
Microsoft.SqlServer.Management.Common.SqlServerManagementException
Microsoft.SqlServer.Management.Smo.SmoException
Microsoft.SqlServer.Management.Smo.FailedOperationException
Espacio de nombres: Microsoft.SqlServer.Management.Smo
Ensamblado: Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Sintaxis
'Declaración
<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
El tipo FailedOperationException expone los siguientes miembros.
Constructores
Nombre | Descripción | |
---|---|---|
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. |
Arriba
Propiedades
Nombre | Descripción | |
---|---|---|
Data | (Se hereda 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. (Se hereda de SmoException.) | |
HResult | (Se hereda de Exception.) | |
InnerException | (Se hereda de Exception.) | |
Message | Gets the message text that explains the exception. (Invalida Exception.Message.) | |
Operation | Gets or sets the operation that failed. | |
SmoExceptionType | Gets the exception type. (Invalida SmoException.SmoExceptionType.) | |
Source | (Se hereda de Exception.) | |
StackTrace | (Se hereda de Exception.) | |
TargetSite | (Se hereda de Exception.) |
Arriba
Métodos
Nombre | Descripción | |
---|---|---|
Equals | (Se hereda de Object.) | |
GetBaseException | (Se hereda de Exception.) | |
GetHashCode | (Se hereda de Object.) | |
GetObjectData | Override based on the virtual SerializationInfo method GetObjectData. (Invalida Exception.GetObjectData(SerializationInfo, StreamingContext).) | |
GetType | (Se hereda de Exception.) | |
SetHelpContext | Sets the Help context value for the referenced exception. (Se hereda de SmoException.) | |
ToString | (Se hereda de Exception.) |
Arriba
Comentarios
Thread Safety
Todos los miembros estáticos (compartidos en Microsoft Visual Basic) públicos de este tipo son seguros para operaciones multiproceso. No se garantiza que los miembros de instancia sean seguros para subprocesos.
Ejemplos
Seguridad para subprocesos
Cualquier miembro público static (Shared en Visual Basic) de este tipo es seguro para subprocesos. No se garantiza que los miembros de instancia sean seguros para subprocesos.