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 物件。

備註

MessageExceptionSourceDataHelpLink 屬性用於頂層訊息,InnerException屬性則用於較低層級的屬性。

預設值為 null

若要在不處理例外的情況下顯示例外訊息框,請建立物件 Exception 實例,定義訊息框中要顯示給使用者的屬性,並將該 Exception 屬性指派給該 Message 屬性。

適用於