Export (0) Print
Expand All

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

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
)
Not applicable.

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 Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1

.NET Compact Framework

Supported in: 2.0

XNA Framework

Supported in: 1.0

Community Additions

ADD
Show:
© 2014 Microsoft