次の方法で共有


ExceptionMessageBox コンストラクター (String, String, ExceptionMessageBoxButtons, ExceptionMessageBoxSymbol)

例外メッセージ ボックスに表示する最上位レベルのエラー メッセージ テキストとダイアログ ボックス キャプションを指定して、ExceptionMessageBox のインスタンスを作成します。 このメソッドは、例外メッセージ ボックスに表示するボタンおよび記号も指定します。

名前空間:  Microsoft.SqlServer.MessageBox
アセンブリ:  Microsoft.ExceptionMessageBox (Microsoft.ExceptionMessageBox.dll)

構文

'宣言
Public Sub New ( _
    text As String, _
    caption As String, _
    buttons As ExceptionMessageBoxButtons, _
    symbol As ExceptionMessageBoxSymbol _
)
'使用
Dim text As String 
Dim caption As String 
Dim buttons As ExceptionMessageBoxButtons 
Dim symbol As ExceptionMessageBoxSymbol 

Dim instance As New ExceptionMessageBox(text, caption, _
    buttons, symbol)
public ExceptionMessageBox(
    string text,
    string caption,
    ExceptionMessageBoxButtons buttons,
    ExceptionMessageBoxSymbol symbol
)
public:
ExceptionMessageBox(
    String^ text, 
    String^ caption, 
    ExceptionMessageBoxButtons buttons, 
    ExceptionMessageBoxSymbol symbol
)
new : 
        text:string * 
        caption:string * 
        buttons:ExceptionMessageBoxButtons * 
        symbol:ExceptionMessageBoxSymbol -> ExceptionMessageBox
public function ExceptionMessageBox(
    text : String, 
    caption : String, 
    buttons : ExceptionMessageBoxButtons, 
    symbol : ExceptionMessageBoxSymbol
)

パラメーター

  • text
    型: System.String
    最上位レベル メッセージのエラー テキストです。
  • caption
    型: System.String
    例外メッセージ ボックスのダイアログ ボックス キャプションです。

関連項目

参照

ExceptionMessageBox クラス

ExceptionMessageBox オーバーロード

Microsoft.SqlServer.MessageBox 名前空間