共用方式為


FailedOperationException 建構函式 (String, String, String, Exception)

Initializes a new instance of the ExceptionAlreadyRegisteredException class that has the two specified types.

命名空間:  Microsoft.SqlServer.Management.Dmf
組件:  Microsoft.SqlServer.Dmf (在 Microsoft.SqlServer.Dmf.dll 中)

語法

'宣告
Public Sub New ( _
    operation As String, _
    failedObjectName As String, _
    failedObjectType As String, _
    innerException As Exception _
)
'用途
Dim operation As String 
Dim failedObjectName As String 
Dim failedObjectType As String 
Dim innerException As Exception 

Dim instance As New FailedOperationException(operation, _
    failedObjectName, failedObjectType, _
    innerException)
public FailedOperationException(
    string operation,
    string failedObjectName,
    string failedObjectType,
    Exception innerException
)
public:
FailedOperationException(
    String^ operation, 
    String^ failedObjectName, 
    String^ failedObjectType, 
    Exception^ innerException
)
new : 
        operation:string * 
        failedObjectName:string * 
        failedObjectType:string * 
        innerException:Exception -> FailedOperationException
public function FailedOperationException(
    operation : String, 
    failedObjectName : String, 
    failedObjectType : String, 
    innerException : Exception
)

參數

  • failedObjectName
    型別:System.String
    A String value that specifies the name of the object that is associated with the operation.
  • failedObjectType
    型別:System.String
    A String value that specifies the type of the object that is associated with the operation.
  • innerException
    型別:System.Exception
    A String value that specifies the second type that is associated with the exception.

備註

只有 Microsoft .NET Framework 2.0 版支援此命名空間、類別或成員。

範例

處理 SMO 例外狀況

請參閱

參考

FailedOperationException 類別

FailedOperationException 多載

Microsoft.SqlServer.Management.Dmf 命名空間