CompilerErrorCollection.Remove(CompilerError) Método

Definición

Quita un elemento específico CompilerError de la colección.

public:
 void Remove(System::CodeDom::Compiler::CompilerError ^ value);
public void Remove(System.CodeDom.Compiler.CompilerError value);
member this.Remove : System.CodeDom.Compiler.CompilerError -> unit
Public Sub Remove (value As CompilerError)

Parámetros

value
CompilerError

que CompilerError se va a quitar de .CompilerErrorCollection

Excepciones

El objeto especificado no se encuentra en la colección.

Ejemplos

En el ejemplo siguiente se muestra cómo quitar un CompilerError elemento de .CompilerErrorCollection

// Removes the specified CompilerError from the collection.
CompilerError error = new CompilerError("Testfile.cs", 5, 10, "CS0001", "Example error text");
collection.Remove( error );
' Removes the specified CompilerError from the collection.
Dim [error] As New CompilerError("Testfile.cs", 5, 10, "CS0001", "Example error text")
collection.Remove([error])

Se aplica a