XmlSyntaxException.XmlSyntaxException(Int32) Constructor

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

Namespace: System.Security
Assembly: mscorlib (in mscorlib.dll)

public XmlSyntaxException (
	int lineNumber
)
public XmlSyntaxException (
	int lineNumber
)
public function XmlSyntaxException (
	lineNumber : int
)
Not applicable.

Parameters

lineNumber

The line number of the XML stream where the XML syntax error was detected.

The line number of an XML stream is updated whenever a newline character is detected. Numbering begins with 1 for the first line.

The following table shows the initial property values for an instance of XmlSyntaxException.

Property

Value

InnerException

a null reference (Nothing in Visual Basic).

Message

"Invalid syntax on line lineNumber."

Windows 98, Windows Server 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 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, 1.0

Community Additions

ADD
Show: