Share via


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

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

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

構文

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

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

パラメーター

  • messageSource
    型: System.Type
    例外のソースを示す Type システム オブジェクトの値です。
  • messageID
    型: System.String
    一般的な SQL トレースの例外と関連付けられたメッセージを示す String 値です。

使用例

SMO 例外の処理

関連項目

参照

SqlTraceException クラス

SqlTraceException オーバーロード

Microsoft.SqlServer.Management.Trace 名前空間

その他の技術情報

SMO 例外の処理