次の方法で共有


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

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

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

構文

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

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

パラメーター

  • message
    型: String
    例外の原因になったイベントを表すメッセージ テキストを示す String 値です。
  • innerException
    型: Exception
    内部例外を含む Exception オブジェクトです。 1 つの例外が原因で別の例外が発生する状況で使用されます。

関連項目

参照

DisconnectedConnectionException クラス

DisconnectedConnectionException オーバーロード

Microsoft.SqlServer.Management.Common 名前空間