共用方式為


BadExpressionTreeException 建構函式 (String)

Initializes a new instance of the BadExpressionTreeException class that has the specified reason.

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

語法

'宣告
Public Sub New ( _
    reason As String _
)
'用途
Dim reason As String 

Dim instance As New BadExpressionTreeException(reason)
public BadExpressionTreeException(
    string reason
)
public:
BadExpressionTreeException(
    String^ reason
)
new : 
        reason:string -> BadExpressionTreeException
public function BadExpressionTreeException(
    reason : String
)

參數

  • reason
    型別:System.String
    A String value that specifies the reason that describes the event that caused the exception.

備註

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

範例

處理 SMO 例外狀況

請參閱

參考

BadExpressionTreeException 類別

BadExpressionTreeException 多載

Microsoft.SqlServer.Management.Dmf 命名空間