FailedOperationException 构造函数 (String, Object, Exception, String)
初始化具有指定对象(针对它的指定操作已失败)及指定的内部异常和引发原因的 FailedOperationException 类的新实例。
命名空间: Microsoft.SqlServer.Management.Smo
程序集: Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)
语法
声明
Public Sub New ( _
operation As String, _
failedObject As Object, _
innerException As Exception, _
reason As String _
)
用法
Dim operation As String
Dim failedObject As Object
Dim innerException As Exception
Dim reason As String
Dim instance As New FailedOperationException(operation, _
failedObject, innerException, reason)
public FailedOperationException(
string operation,
Object failedObject,
Exception innerException,
string reason
)
public:
FailedOperationException(
String^ operation,
Object^ failedObject,
Exception^ innerException,
String^ reason
)
new :
operation:string *
failedObject:Object *
innerException:Exception *
reason:string -> FailedOperationException
public function FailedOperationException(
operation : String,
failedObject : Object,
innerException : Exception,
reason : String
)
参数
- operation
类型:System. . :: . .String
一个 String 值,指定失败的操作。
- failedObject
类型:System. . :: . .Object
一个 Object 系统对象值,指定操作失败时的操作对象。
- innerException
类型:System. . :: . .Exception
一个 Exception 系统对象值,指定“操作失败”异常的内部异常。
- reason
类型:System. . :: . .String
一个 String 值,指定发生异常的原因。