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
)
public XmlException (
	String message, 
	Exception innerException, 
	int lineNumber, 
	int linePosition
)
public function XmlException (
	message : String, 
	innerException : Exception, 
	lineNumber : int, 
	linePosition : int
)

Parameters

message

The error description.

innerException

The exception that is the cause of the current exception. This value can be a null reference (Nothing in Visual Basic).

lineNumber

The line number indicating where the error occurred.

linePosition

The line position indicating where the error occurred.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1

.NET Compact Framework

Supported in: 2.0

Community Additions

ADD
Show: