ParserErrorCollection.Remove(ParserError) Metódus

Definíció

Eltávolítja a megadott ParserError objektumot a gyűjteményből.

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)

Paraméterek

value
ParserError

A ParserError gyűjteményből eltávolítandó.

Példák

Az alábbi példakód bemutatja, hogyan távolíthat el egy ParserError objektumot a megadott indexből 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])

Megjegyzések

Ezzel a Remove módszerrel eltávolíthat egy ParserError objektumot a gyűjteményből, ha a gyűjteményre mutató hivatkozással rendelkezik ParserError.

A következőre érvényes: