Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ArgumentException.Message Property

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.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2015 Microsoft