ExceptionMessageBox.Message プロパティ

定義

表示するメッセージが含まれる Exception を取得します。値の設定も可能です。

public:
 property Exception ^ Message { Exception ^ get(); void set(Exception ^ value); };
public Exception Message { get; set; }
member this.Message : Exception with get, set
Public Property Message As Exception

プロパティ値

Exception オブジェクト。

注釈

MessageSourceData、および HelpLinkException プロパティは、最上位レベル メッセージに使用され、InnerException プロパティは下位レベル プロパティに使用されます。

既定値は null です。

例外を処理しないで例外メッセージ ボックスを表示するには、Exception オブジェクトのインスタンスを作成して、メッセージ ボックスに表示するプロパティを定義し、Exception プロパティに Message を割り当てます。

適用対象