JsonObject.ICollection<KeyValuePair<String,JsonValue>>.Remove Metode

Definisi

Menghapus kemunculan pertama objek tertentu dari ICollection<T>.

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

Parameter

item
KeyValuePair<String,JsonValue>

Objek yang akan dihapus dari ICollection<T>.

Mengembalikan

true jika item berhasil dihapus dari ICollection<T>; jika tidak, false. Metode ini juga mengembalikan false jika item tidak ditemukan di aslinya ICollection<T>.

Penerapan

Keterangan

Catatan

Namespace System.Json dirancang untuk Silverlight, yang tidak lagi didukung. Untuk memproses JSON, sebaiknya gunakan API di namespace sebagai gantinya System.Text.Json .

Berlaku untuk