ExceptionMessageBox.Message 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定 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 物件。
備註
Message的 Exception 、 Source、 Data和 HelpLink 屬性用於頂層訊息,InnerException屬性則用於較低層級的屬性。
預設值為 null。
若要在不處理例外的情況下顯示例外訊息框,請建立物件 Exception 實例,定義訊息框中要顯示給使用者的屬性,並將該 Exception 屬性指派給該 Message 屬性。