ParserErrorCollection Class
Assembly: System.Web (in system.web.dll)
[SerializableAttribute] public ref class ParserErrorCollection sealed : public CollectionBase
/** @attribute SerializableAttribute() */ public final class ParserErrorCollection extends CollectionBase
SerializableAttribute public final class ParserErrorCollection extends CollectionBase
Not applicable.
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:
- SecurityPermission for operating in a hosted environment. Demand value: LinkDemand; Permission value: Minimal.