Share via


CompilerErrorCollection.Remove(CompilerError) Método

Definición

Quita una clase CompilerError específica 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

CompilerError que se va a quitar de CompilerErrorCollection.

Excepciones

No se encuentra el objeto especificado 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 = gcnew CompilerError( "Testfile.cs",5,10,"CS0001","Example error text" );
collection->Remove( error );
// 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