共用方式為


InvalidSmoOperationException 建構函式 (String, SqlSmoState)

Initializes a new instance of the InvalidSmoOperationException class with the specified message and SMO state.

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

語法

'宣告
Public Sub New ( _
    opName As String, _
    state As SqlSmoState _
)
'用途
Dim opName As String 
Dim state As SqlSmoState 

Dim instance As New InvalidSmoOperationException(opName, _
    state)
public InvalidSmoOperationException(
    string opName,
    SqlSmoState state
)
public:
InvalidSmoOperationException(
    String^ opName, 
    SqlSmoState state
)
new : 
        opName:string * 
        state:SqlSmoState -> InvalidSmoOperationException
public function InvalidSmoOperationException(
    opName : String, 
    state : SqlSmoState
)

參數

  • opName
    型別:System.String
    A String value that specifies the name of the SMO operation that is not valid.

範例

處理 SMO 例外狀況

請參閱

參考

InvalidSmoOperationException 類別

InvalidSmoOperationException 多載

Microsoft.SqlServer.Management.Smo 命名空間