System.Web.ParserErrorCollection.IndexOf Method

Gets the index of the specified System.Web.ParserError object in the collection.

Syntax

public int IndexOf (ParserError error)

Parameters

error
Documentation for this section has not yet been entered.

Returns

The zero-based index of the System.Web.ParserError objects within the collection; otherwise, 1 if the System.Web.ParserError is not in the collection.

Remarks

Use the ParserErrorCollection.IndexOf(ParserError) method to determine the index of a System.Web.ParserError object within the collection. This is useful to determine the index of each System.Web.ParserError when you iterate through the collection by using the IEnumerator object returned by the CollectionBase.GetEnumerator method.

Requirements

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