ParserErrorCollection.Remove(ParserError) Método

Definição

Remove o objeto especificado ParserError da coleção.

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)

Parâmetros

value
ParserError

A ParserError remover da coleção.

Exemplos

O seguinte exemplo de código demonstra como remover a ParserError do índice especificado num ParserErrorCollection objeto.

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

Observações

Use o Remove método para remover um ParserError objeto da coleção quando tiver uma referência ao ParserError.

Aplica-se a