ParserErrorCollection.Remove(ParserError) Metodo

Definizione

Rimuove l'oggetto ParserError specificato dalla raccolta.

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)

Parametri

value
ParserError

Oggetto ParserError da rimuovere dalla raccolta.

Esempio

Nell'esempio di codice seguente viene illustrato come rimuovere un ParserError oggetto dall'indice specificato in un ParserErrorCollection oggetto.

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

Commenti

Utilizzare il Remove metodo per rimuovere un oggetto dall'insieme ParserErrorquando si ha un ParserError riferimento a .

Si applica a