FailedOperationException-Klasse
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.
Vererbungshierarchie
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 (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
<SerializableAttribute> _
Public NotInheritable Class FailedOperationException _
Inherits SmoException
'Usage
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
Der FailedOperationException-Typ macht folgende Elemente verfügbar.
Konstruktoren
Name | Beschreibung | |
---|---|---|
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. |
Zum Anfang
Eigenschaften
Name | Beschreibung | |
---|---|---|
Data | (Geerbt von 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. (Geerbt von SmoException.) | |
HResult | (Geerbt von Exception.) | |
InnerException | (Geerbt von Exception.) | |
Message | Gets the message text that explains the exception. (Überschreibt Exception.Message.) | |
Operation | Gets or sets the operation that failed. | |
SmoExceptionType | Gets the exception type. (Überschreibt SmoException.SmoExceptionType.) | |
Source | (Geerbt von Exception.) | |
StackTrace | (Geerbt von Exception.) | |
TargetSite | (Geerbt von Exception.) |
Zum Anfang
Methoden
Name | Beschreibung | |
---|---|---|
Equals | (Geerbt von Object.) | |
GetBaseException | (Geerbt von Exception.) | |
GetHashCode | (Geerbt von Object.) | |
GetObjectData | Override based on the virtual SerializationInfo method GetObjectData. (Überschreibt Exception.GetObjectData(SerializationInfo, StreamingContext).) | |
GetType | (Geerbt von Exception.) | |
SetHelpContext | Sets the Help context value for the referenced exception. (Geerbt von SmoException.) | |
ToString | (Geerbt von Exception.) |
Zum Anfang
Hinweise
Thread Safety
Alle öffentlichen, statischen Elemente dieses Typs (Shared in Microsoft Visual Basic) sind für Vorgänge mit mehreren Threads sicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.
Beispiele
Threadsicherheit
Alle öffentlichen static (Shared in Visual Basic)-Elemente dieses Typs sind Threadsicher. Für Instanzelemente wird die Threadsicherheit nicht gewährleistet.