System.Web.ParserErrorCollection.Insert Method

Inserts the specified System.Web.ParserError object into the collection at the specified index.

Syntax

public void Insert (int index, ParserError error)

Parameters

error
Documentation for this section has not yet been entered.
index
The index within the collection at which to insert the System.Web.ParserError.

Remarks

Use the ParserErrorCollection.Insert(int, ParserError) method to insert an existing System.Web.ParserError object at a particular index within the collection.

You cannot add the same System.Web.ParserError object to the collection more than once. When you call the ParserErrorCollection.Insert(int, ParserError) method by using a System.Web.ParserError that is already in the collection, the insertion fails. Use the ParserErrorCollection.Contains(ParserError) method before the insertion to determine whether a particular System.Web.ParserError is already in the collection. To reposition a System.Web.ParserError within the collection, you must first remove it by using the ParserErrorCollection.Remove(ParserError) method and then insert it at the desired index by using ParserErrorCollection.Insert(int, ParserError).

Requirements

Namespace: System.Web
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0