System.Web.ParserErrorCollection.Add Method

Adds a value to the collection.

Syntax

public int Add (ParserError error)

Parameters

error
Documentation for this section has not yet been entered.

Returns

The index of the value within the collection; otherwise, -1 if the value is already in the collection.

Remarks

Use the ParserErrorCollection.Add(ParserError) method to add an existing System.Web.ParserError object to the collection. You cannot add the same System.Web.ParserError object to the collection more than once. When you call the ParserErrorCollection.Add(ParserError) method using a System.Web.ParserError object that is already in the collection, the addition fails and -1 is returned.

To add multiple objects to the collection, use the ParserErrorCollection.AddRange(ParserErrorCollection) method.

Requirements

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