_Exception.Message 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
為 COM 物件提供與版本無關的 Message 屬性之存取權。
public:
property System::String ^ Message { System::String ^ get(); };
public string Message { get; }
member this.Message : string
Public ReadOnly Property Message As String
屬性值
解釋例外狀況原因的錯誤訊息,或是空字串 ("")。
備註
這個方法是用來從非受控碼存取 managed 類別,不應該從 managed 程式碼呼叫。
Exception.Message屬性會取得描述目前例外狀況的訊息。