XmlException Constructor (String^, Exception^, Int32, Int32)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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 8
.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: