ArgumentOutOfRangeException.Message 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得錯誤訊息和無效引數值的字串表示,或如果引數值是 null 時,只取得錯誤訊息。
public:
virtual property System::String ^ Message { System::String ^ get(); };
public override string Message { get; }
member this.Message : string
Public Overrides ReadOnly Property Message As String
屬性值
這個例外狀況的文字訊息。 這個屬性值是下列兩種形式中的一種:
條件 | 值 |
---|---|
actualValue 為 null 。
| 傳遞給建構函式的 message 字串。
|
actualValue 不是 null 。
| 與代表無效參數名稱之字串附加在一起的 message 字串。
|
備註
這個屬性會 Message 覆寫 。
錯誤訊息應該描述造成這個例外狀況的參數預期值。 錯誤訊息應當地語系化。