FailedOperationException Class
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.
Inheritance Hierarchy
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
'Bildirim
<SerializableAttribute> _
Public NotInheritable Class FailedOperationException _
Inherits SmoException
'Kullanım
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
The FailedOperationException type exposes the following members.
Constructors
Name | Description | |
---|---|---|
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. |
Top
Properties
Name | Description | |
---|---|---|
Data | (Inherited from 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. (Inherited from SmoException.) | |
HResult | (Inherited from Exception.) | |
InnerException | (Inherited from Exception.) | |
Message | Gets the message text that explains the exception. (Overrides Exception.Message.) | |
Operation | Gets or sets the operation that failed. | |
SmoExceptionType | Gets the exception type. (Overrides SmoException.SmoExceptionType.) | |
Source | (Inherited from Exception.) | |
StackTrace | (Inherited from Exception.) | |
TargetSite | (Inherited from Exception.) |
Top
Methods
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetBaseException | (Inherited from Exception.) | |
GetHashCode | (Inherited from Object.) | |
GetObjectData | Override based on the virtual SerializationInfo method GetObjectData. (Overrides Exception.GetObjectData(SerializationInfo, StreamingContext).) | |
GetType | (Inherited from Exception.) | |
MemberwiseClone | (Inherited from Object.) | |
SetHelpContext | Sets the Help context value for the referenced exception. (Inherited from SmoException.) | |
ToString | (Inherited from Exception.) |
Top
Remarks
Thread Safety
Any public static (Shared in Microsoft Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.
Examples
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.