Export (0) Print
Expand All
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.

ArgumentException.Message Property

July 28, 2014

Gets the error message and the parameter name, or only the error message if no parameter name is set.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

public override string Message { get; }

Property Value

Type: System.String
A text string describing the details of the exception. The value of this property takes one of two forms:

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 a 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 Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft