Bagikan melalui


CodeStatementCollection.Remove(CodeStatement) Metode

Definisi

Menghapus objek yang ditentukan CodeStatement dari koleksi.

public:
 void Remove(System::CodeDom::CodeStatement ^ value);
public void Remove (System.CodeDom.CodeStatement value);
member this.Remove : System.CodeDom.CodeStatement -> unit
Public Sub Remove (value As CodeStatement)

Parameter

value
CodeStatement

untuk CodeStatement menghapus dari koleksi.

Pengecualian

Objek yang ditentukan tidak ditemukan dalam koleksi.

Contoh

Contoh berikut menunjukkan cara menggunakan Remove metode untuk menghapus CodeStatement objek dari CodeStatementCollection.

// Removes the specified CodeStatement from the collection.
collection->Remove( testStatement );
// Removes the specified CodeStatement from the collection.
collection.Remove( testStatement );
' Removes the specified CodeStatement from the collection.
collection.Remove(testStatement)

Berlaku untuk