共用方式為


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.

命名空間:  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
)

參數