XmlSyntaxException
The exception that is thrown when there is a syntax error in XML parsing. This class cannot be inherited.
using System.Runtime.CompilerServices;
using System.Runtime.Serialization;
namespace System.Security
{
[Serializable]
[TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public sealed class XmlSyntaxException : SystemException
{
public XmlSyntaxException()
{
}
public XmlSyntaxException(int lineNumber)
{
}
public XmlSyntaxException(int lineNumber, string message)
{
}
public XmlSyntaxException(string message)
{
}
public XmlSyntaxException(string message, Exception inner)
{
}
[Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId = "SYSLIB0051", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
private XmlSyntaxException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
}
}