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 命名空间