CompilerErrorCollection.Remove(CompilerError) Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
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])