Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class System.​Xml.​XmlException
Assembly: System.Xml.ReaderWriter
Inheritance: object → Exception → SystemException → XmlException
Implemented Interfaces
Returns detailed information about the last exception.
Properties
public
int
LineNumber
Gets the line number indicating where the error occurred. Line numbers start at 1.
public
int
LinePosition
Gets the line position indicating where the error occurred. Line position starts at 1.
public
string
Message
Gets a message describing the current exception.
public
string
SourceUri
Gets the location of the XML file.
Data
public
string
HelpLink
public
int
HResult
public
Exception
InnerException
public
string
Source
public
string
StackTrace
TargetSite
Methods
public
void
GetObjectData​(Runtime.​Serialization.​SerializationInfo info,
Runtime.​Serialization.​StreamingContext context)
Streams all the <see langword="XmlException" /> properties into the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> class for the given <see cref="T:System.Runtime.Serialization.StreamingContext" /> .
info
The <see langword="SerializationInfo" /> object.
context
The <see langword="StreamingContext" /> object.
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object