Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ArgumentOutOfRangeException.ActualValue Property

Gets the argument value that causes this exception.

[Visual Basic]
Public Overridable ReadOnly Property ActualValue As Object
[C#]
public virtual object ActualValue {get;}
[C++]
public: __property virtual Object* get_ActualValue();
[JScript]
public function get ActualValue() : Object;

Property Value

An Object that contains the value of the parameter that caused the current Exception.

Remarks

Use this property to retrieve the invalid argument.

The ActualValue property returns the same value as was passed into the constructor, or a null reference (Nothing in Visual Basic) if no value was supplied.

The ActualValue property is assigned a value at the time of object construction. If the ActualValue property value is not a null reference (Nothing), a string representation of the value is then appended to the message string held by the Message property.

The ActualValue property is not used within the .NET Framework class library. It carries a null value in all the ArgumentOutOfRangeException objects thrown by the .NET Framework class library. The ActualValue property is provided so that applications can make use of the available argument value.

This property is read-only and should only be overridden in order to customize the content or format of the value.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Common Language Infrastructure (CLI) Standard

See Also

ArgumentOutOfRangeException Class | ArgumentOutOfRangeException Members | System Namespace

Show:
© 2014 Microsoft