CompilerErrorCollection.Remove(CompilerError) Metodo

Definizione

Rimuove un oggetto specifico CompilerError dalla raccolta.

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)

Parametri

value
CompilerError

Oggetto CompilerError da rimuovere dall'oggetto CompilerErrorCollection.

Eccezioni

L'oggetto specificato non viene trovato nell'insieme.

Esempio

Nell'esempio seguente viene illustrato come rimuovere un CompilerError elemento da un oggetto 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])

Si applica a