ParserErrorCollection Class
Manages a set of parser errors detected during parsing. This class cannot be inherited.
Assembly: System.Web (in System.Web.dll)
The ParserErrorCollection class provides methods and properties that you can use to manage a collection of ParserError objects. For example, you can add a set of parser errors to a collection upon parsing while using a custom BuildProvider object to report all parse exceptions caught during parsing.
To add parser errors to, remove them from, or locate them in a collection, use the following:
The Add method to add a single ParserError object to the collection.
The AddRange methods to add multiple ParserError objects to the collection.
Both the Insert method and the Item property, which is the ParserErrorCollection indexer, to add a single ParserError object to the collection at the specified index.
Additionally, you can use the ParserErrorCollection class to do the following:
Remove ParserError objects with the Remove method.
Check whether a particular ParserError is in the collection by using the Contains method.
Find where a ParserError object is located in the collection by using the IndexOf method.
- SecurityPermission
for operating in a hosted environment. Demand value: LinkDemand; Permission value: Minimal.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.