ParserErrorCollection.Remove(ParserError) Metoda

Definice

Odebere zadaný ParserError objekt z kolekce.

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)

Parametry

value
ParserError

Odebrání ParserError z kolekce

Příklady

Následující příklad kódu ukazuje, jak odebrat ParserError ze zadaného indexu v objektu ParserErrorCollection .

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

Poznámky

Použijte metodu Remove ParserError k odebrání objektu z kolekce, pokud máte odkaz na ParserError.

Platí pro