ParserErrorCollection.Remove(ParserError) Methode

Definition

Entfernt das angegebene ParserError-Objekt aus der Auflistung.

public:
 void Remove(System::Web::ParserError ^ value);
public void Remove (System.Web.ParserError value);
member this.Remove : System.Web.ParserError -> unit
Public Sub Remove (value As ParserError)

Parameter

value
ParserError

Die aus der Auflistung zu entfernende ParserError.

Beispiele

Im folgenden Codebeispiel wird veranschaulicht, wie sie einen ParserError aus dem angegebenen Index in einem ParserErrorCollection Objekt entfernen.

// 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.
collection.Remove(error);
' Insert a ParserError at index 0 of the collection.
Dim [error] As New ParserError("Error", "Path", 1)
collection.Insert(0, [error])

' Remove the specified ParserError from the collection.
collection.Remove([error])

Hinweise

Verwenden Sie die Remove Methode, um ein ParserError Objekt aus der Auflistung zu entfernen, wenn Sie einen Verweis auf die ParserError.

Gilt für