ParserError.ParserError(String, String, Int32) Constructor

Initializes a new instance of the ParserError class by using the specified error text, virtual path, and source line number.

Namespace: System.Web
Assembly: System.Web (in system.web.dll)

public:
ParserError (
	String^ errorText, 
	String^ virtualPath, 
	int line
)
public ParserError (
	String errorText, 
	String virtualPath, 
	int line
)
public function ParserError (
	errorText : String, 
	virtualPath : String, 
	line : int
)
Not applicable.

Parameters

errorText

The error message text.

virtualPath

The virtual path of the file being parsed when the error occurred.

line

The line number of the error source.

Use the ParserError constructor to initialize a ParserError object with custom settings. The ParserError constructor has the following properties:

  • The ErrorText property, which is a string containing the error message that is related to the parser error.

  • The VirtualPath property, which is a read-only string that specifies the virtual path of the file that contains the parser error.

  • The Line property, whichis the line number within the file at which this ParserError object was thrown.

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

Community Additions

ADD
Show: