FailedOperationException 建構函式 (String, Object, Exception)
初始化 FailedOperationException 類別的新執行個體,這個執行個體具有指定的物件 (指定的作業在該物件上失敗),而且具有指定的內部例外狀況。
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
Public Sub New ( _
operation As String, _
failedObject As Object, _
innerException As Exception _
)
'用途
Dim operation As String
Dim failedObject As Object
Dim innerException As Exception
Dim instance As New FailedOperationException(operation, _
failedObject, innerException)
public FailedOperationException(
string operation,
Object failedObject,
Exception innerException
)
public:
FailedOperationException(
String^ operation,
Object^ failedObject,
Exception^ innerException
)
new :
operation:string *
failedObject:Object *
innerException:Exception -> FailedOperationException
public function FailedOperationException(
operation : String,
failedObject : Object,
innerException : Exception
)
參數
- operation
型別:System. . :: . .String
String 物件,指定失敗的作業。
- failedObject
型別:System. . :: . .Object
Object 系統物件值,指定作業失敗所在的物件。
- innerException
型別:System. . :: . .Exception
Exception 系統物件值,指定代表作業失敗例外狀況的內部例外狀況。