Bagikan melalui


ExpandoObject.ICollection<KeyValuePair<String,Object>>.Remove Metode

Definisi

Menghapus kunci dan nilai dari koleksi.

 virtual bool System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Object>>.Remove(System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^> item) = System::Collections::Generic::ICollection<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>>::Remove;
bool ICollection<KeyValuePair<string,object>>.Remove (System.Collections.Generic.KeyValuePair<string,object> item);
abstract member System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Object>>.Remove : System.Collections.Generic.KeyValuePair<string, obj> -> bool
override this.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Object>>.Remove : System.Collections.Generic.KeyValuePair<string, obj> -> bool
Function Remove (item As KeyValuePair(Of String, Object)) As Boolean Implements ICollection(Of KeyValuePair(Of String, Object)).Remove

Parameter

item
KeyValuePair<String,Object>

Struktur KeyValuePair<TKey,TValue> yang mewakili kunci dan nilai yang akan dihapus dari koleksi.

Mengembalikan

true jika kunci dan nilai berhasil ditemukan dan dihapus; jika tidak, false. Metode ini mengembalikan false jika kunci dan nilai tidak ditemukan di ICollection<T>.

Penerapan

Berlaku untuk