This documentation is archived and is not being maintained.

ParserErrorCollection.Remove Method

Note: This method is new in the .NET Framework version 2.0.

Removes the specified ParserError object from the collection.

Namespace: System.Web
Assembly: System.Web (in system.web.dll)

public void Remove (
	ParserError value
public void Remove (
	ParserError value
public function Remove (
	value : ParserError



The ParserError to remove from the collection.

Use the Remove method to remove a ParserError object from the collection when you have a reference to the ParserError.

The following code example demonstrates how to remove a ParserError from the specified index in a ParserErrorCollection object.

// Insert a ParserError at index 0 of the collection.
ParserError error = new ParserError("Error", "Path", 1);
collection.Insert(0, error);

// Remove the specified ParserError from the collection.

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0