XmlException Constructor (String, Exception, Int32, Int32)

XmlException Constructor (String, Exception, Int32, Int32)

 

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

Namespace:   System.Xml
Assembly:  System.Xml (in System.Xml.dll)

public XmlException(
	string message,
	Exception innerException,
	int lineNumber,
	int linePosition
)

Parameters

message
Type: System.String

The error description.

innerException
Type: System.Exception

The exception that is the cause of the current exception. This value can be null.

lineNumber
Type: System.Int32

The line number indicating where the error occurred.

linePosition
Type: System.Int32

The line position indicating where the error occurred.

Universal Windows Platform
Available since 4.5
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show:
© 2016 Microsoft