This documentation is archived and is not being maintained.

XmlException Constructor

.NET Framework 1.1
Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.

Initializes a new instance of the XmlException class.

Overload List

Initializes a new instance of the XmlException class.

[Visual Basic] Public Sub New()
[C#] public XmlException();
[C++] public: XmlException();
[JScript] public function XmlException();

Initializes a new instance of the XmlException class with a specified error message.

[Visual Basic] Public Sub New(String)
[C#] public XmlException(string);
[C++] public: XmlException(String*);
[JScript] public function XmlException(String);

Initializes a new instance of the XmlException class using the information in the SerializationInfo and StreamingContext objects.

[Visual Basic] Protected Sub New(SerializationInfo, StreamingContext)
[C#] protected XmlException(SerializationInfo, StreamingContext);
[C++] protected: XmlException(SerializationInfo*, StreamingContext);
[JScript] protected function XmlException(SerializationInfo, StreamingContext);

Initializes a new instance of the XmlException class.

Supported by the .NET Compact Framework.

[Visual Basic] Public Sub New(String, Exception)
[C#] public XmlException(string, Exception);
[C++] public: XmlException(String*, Exception*);
[JScript] public function XmlException(String, Exception);

Initializes a new instance of the XmlException class with the specified message, inner exception, line number, and line position.

[Visual Basic] Public Sub New(String, Exception, Integer, Integer)
[C#] public XmlException(string, Exception, int, int);
[C++] public: XmlException(String*, Exception*, int, int);
[JScript] public function XmlException(String, Exception, int, int);

See Also

XmlException Class | XmlException Members | System.Xml Namespace

Show: