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

The ParserError to remove from the collection.

Beispiele

Im folgenden Codebeispiel wird veranschaulicht, wie ein ParserError Objekt aus dem angegebenen Index entfernt ParserErrorCollection wird.

// 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: