This documentation is archived and is not being maintained.

XmlSyntaxException Class

The exception that is thrown when there is a syntax error in XML parsing. This class cannot be inherited.

For a list of all members of this type, see XmlSyntaxException Members.

System.Object
   System.Exception
      System.SystemException
         System.Security.XmlSyntaxException

[Visual Basic]
<Serializable>
NotInheritable Public Class XmlSyntaxException
   Inherits SystemException
[C#]
[Serializable]
public sealed class XmlSyntaxException : SystemException
[C++]
[Serializable]
public __gc __sealed class XmlSyntaxException : public
   SystemException
[JScript]
public
   Serializable
class XmlSyntaxException extends SystemException

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Remarks

XmlSyntaxException uses the default Equals implementation, which supports reference equality.

For a list of initial property values for an instance of XmlSyntaxException, see the constructor.

Requirements

Namespace: System.Security

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: Mscorlib (in Mscorlib.dll)

See Also

XmlSyntaxException Members | System.Security Namespace | Exception | Handling and Throwing Exceptions

Show: