See Also: ParserErrorCollection Members
The System.Web.ParserErrorCollection class provides methods and properties that you can use to manage a collection of System.Web.ParserError objects. For example, you can add a set of parser errors to a collection upon parsing while using a custom System.Web.Compilation.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 ParserErrorCollection.Add(ParserError) method to add a single System.Web.ParserError object to the collection.
The erload:System.Web.ParserErrorCollection.AddRange methods to add multiple System.Web.ParserError objects to the collection.
Both the ParserErrorCollection.Insert(int, ParserError) method and the ParserErrorCollection.Item(int) property, which is the System.Web.ParserErrorCollection indexer, to add a single System.Web.ParserError object to the collection at the specified index.
Additionally, you can use the System.Web.ParserErrorCollection class to do the following:
Remove System.Web.ParserError objects with the ParserErrorCollection.Remove(ParserError) method.
Check whether a particular System.Web.ParserError is in the collection by using the ParserErrorCollection.Contains(ParserError) method.
Find where a System.Web.ParserError object is located in the collection by using the ParserErrorCollection.IndexOf(ParserError) method.