XmlSyntaxException Constructor

XmlSyntaxException Constructor

.NET Framework 1.1

Initializes a new instance of the XmlSyntaxException class.

Overload List

Initializes a new instance of the XmlSyntaxException class with default properties.

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

Initializes a new instance of the XmlSyntaxException class with the line number where the exception was detected.

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

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

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

Initializes a new instance of the XmlSyntaxException class with a specified error message and the line number where the exception was detected.

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

Initializes a new instance of the XmlSyntaxException class with a specified error message and a reference to the inner exception that is the cause of this exception.

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

See Also

XmlSyntaxException Class | XmlSyntaxException Members | System.Security Namespace

Show:
© 2016 Microsoft