Bagikan melalui


CompilerErrorCollection.Remove(CompilerError) Metode

Definisi

Menghapus spesifik CompilerError dari koleksi.

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)

Parameter

Pengecualian

Objek yang ditentukan tidak ditemukan dalam koleksi.

Contoh

Contoh berikut menunjukkan cara menghapus CompilerError item dari 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])

Berlaku untuk