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

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

名前空間:  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 SqlServerManagementException(message, _
    innerException)
public SqlServerManagementException(
    string message,
    Exception innerException
)
public:
SqlServerManagementException(
    String^ message, 
    Exception^ innerException
)
new : 
        message:string * 
        innerException:Exception -> SqlServerManagementException
public function SqlServerManagementException(
    message : String, 
    innerException : Exception
)

パラメーター

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

関連項目

参照

SqlServerManagementException クラス

SqlServerManagementException オーバーロード

Microsoft.SqlServer.Management.Common 名前空間