Gets the error message and the parameter name, or only the error message if no parameter name is set.
Public Overrides ReadOnly Property Message As String
Dim instance As ArgumentException Dim value As String value = instance.Message
public override string Message { get; }
public: virtual property String^ Message { String^ get () override; }
public override function get Message () : String
Condition
Value
The paramName is a null reference (Nothing in Visual Basic) or of zero length.
The message string passed to the constructor.
The paramName is not null reference (Nothing in Visual Basic) and it has a length greater than zero.
The message string appended with the name of the invalid parameter.
This property overrides Message. The error message should be localized.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98