System.Xml.XmlException.Message Property

Gets a message describing the current exception.

Syntax

public override string Message { get; }

Value

A string containing the error message that describes the current exception.

Remarks

This property is read-only.

If the XmlException.LineNumber property is not equal to zero, the string returned by this property includes the values of the XmlException.LineNumber and XmlException.LinePosition properties.

Note: This property overrides Exception.Message.

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0