Retrieves the actual value that caused the exception to be thrown.
[Visual Basic] Overridable Public ReadOnly Property ActualValue As Object [C#] public object ActualValue {virtual get;} [C++] public: __property virtual Object* get_ActualValue(); [JScript] public function get ActualValue() : Object;
This property retrieves the actual value that caused the exception to be thrown.
The ActualValue prooperty is assigned at the time of construction via ArgumentOutOfRangeException(String parameterName, Object value, String message). If ActualValue is non-null, a string representation is appended to the message text held by Message.
Note that the ActualValue property is not used within the base class library. That is, its value is null on all the ArgumentOutOfRangeException objects thrown by the base class library. It is provided so that developers may avoid the use of printf's when throwing this exception with an appropriate message text.
ArgumentOutOfRangeException Class | ArgumentOutOfRangeException Members | System Namespace