NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ArgumentOutOfRangeException.ActualValue

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;

Property Value

This property retrieves the actual value that caused the exception to be thrown.

Remarks

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.

See Also

ArgumentOutOfRangeException Class | ArgumentOutOfRangeException Members | System Namespace