Export (0) Print
Expand All

ParserError Constructor

Initializes a new instance of the ParserError class.

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

public ParserError()

The following code example demonstrates how to initialize an empty instance of the ParserError class and how to use its properties.

ParserError MyParserError = new ParserError();

MyParserError.ErrorText = "My Error Text";

MyParserError.Line = 5;

MyParserError.VirtualPath = "MyPath";

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
© 2015 Microsoft