ArgumentOutOfRangeException.ActualValue ArgumentOutOfRangeException.ActualValue ArgumentOutOfRangeException.ActualValue ArgumentOutOfRangeException.ActualValue Property

定義

取得造成這個例外狀況的引數值。Gets the argument value that causes this exception.

public:
 virtual property System::Object ^ ActualValue { System::Object ^ get(); };
public virtual object ActualValue { get; }
member this.ActualValue : obj
Public Overridable ReadOnly Property ActualValue As Object

屬性值

Object,包含造成目前 Exception 的參數值。An Object that contains the value of the parameter that caused the current Exception.

備註

您可以使用這個屬性來擷取無效的引數。Use this property to retrieve the invalid argument.

ActualValue屬性會傳回相同的值傳遞給建構函式,或null如果已不提供任何值。The ActualValue property returns the same value that was passed to the constructor, or null if no value was supplied.

ActualValue屬性在物件建構時指派值。The ActualValue property is assigned a value at the time of object construction. 如果ActualValue屬性值不是null,值的字串表示附加至所持有的訊息字串Message屬性。If the ActualValue property value is not null, a string representation of the value is appended to the message string held by the Message property.

ActualValue屬性不是.NET Framework 類別庫中。The ActualValue property is not used within the .NET Framework class library. 它會在所有的 null 值ArgumentOutOfRangeException擲回的.NET Framework 類別庫的物件。It carries a null value in all the ArgumentOutOfRangeException objects thrown by the .NET Framework class library. ActualValue屬性提供,讓應用程式可以使用提供的引數的值。The ActualValue property is provided so that applications can use the available argument value.

此屬性是唯讀的而且只有在要自訂的內容或值的格式應該覆寫。This property is read-only and should be overridden only to customize the content or format of the value.

適用於