CompilerErrorCollection.Remove(CompilerError) Metod

Definition

Tar bort en specifik CompilerError från samlingen.

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)

Parametrar

Undantag

Det angivna objektet hittades inte i samlingen.

Exempel

I följande exempel visas hur du tar bort ett CompilerError objekt från en 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])

Gäller för