ParserErrorCollection.Remove(ParserError) Metod

Definition

Tar bort det angivna ParserError objektet från samlingen.

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)

Parametrar

value
ParserError

Att ParserError ta bort från samlingen.

Exempel

Följande kodexempel visar hur du tar bort en ParserError från det angivna indexet i ett ParserErrorCollection objekt.

// 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])

Kommentarer

Remove Använd metoden för att ta bort ett ParserError objekt från samlingen när du har en referens till ParserError.

Gäller för