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

Definice

Odebere první výskyt konkrétního objektu z objektu 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

Parametry

item
KeyValuePair<String,JsonValue>

Objekt, který se má odebrat z objektu ICollection<T>.

Návraty

truepokud item byl úspěšně odebrán z objektu ICollection<T>; v opačném případě . false Tato metoda také vrátí false , pokud item není nalezen v původní ICollection<T>.

Implementuje

Poznámky

Poznámka

Obor System.Json názvů byl navržen pro Silverlight, který se už nepodporuje. Pro zpracování JSON doporučujeme místo toho použít rozhraní API v System.Text.Json oboru názvů.

Platí pro