Share via


SqlTraceException コンストラクター (String, Exception)

指定したメッセージと内部例外を使用して、SQLTraceException クラスの新しいインスタンスを初期化します。

名前空間:  Microsoft.SqlServer.Management.Trace
アセンブリ:  Microsoft.SqlServer.ConnectionInfoExtended (Microsoft.SqlServer.ConnectionInfoExtended.dll)

構文

'宣言
Public Sub New ( _
    message As String, _
    innerException As Exception _
)
'使用
Dim message As String 
Dim innerException As Exception 

Dim instance As New SqlTraceException(message, _
    innerException)
public SqlTraceException(
    string message,
    Exception innerException
)
public:
SqlTraceException(
    String^ message, 
    Exception^ innerException
)
new : 
        message:string * 
        innerException:Exception -> SqlTraceException
public function SqlTraceException(
    message : String, 
    innerException : Exception
)

パラメーター

  • message
    型: System.String
    一般的な SQL トレースの例外と関連付けられたメッセージを示す String 値です。
  • innerException
    型: System.Exception
    SQL トレースの例外の内部例外を示す Exception オブジェクトの値です。

使用例

SMO 例外の処理

関連項目

参照

SqlTraceException クラス

SqlTraceException オーバーロード

Microsoft.SqlServer.Management.Trace 名前空間

その他の技術情報

SMO 例外の処理