JsonObject.ICollection<KeyValuePair<String,JsonValue>>.Remove Méthode

Définition

Supprime la première occurrence d’un objet spécifique de 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

Paramètres

item
KeyValuePair<String,JsonValue>

Objet à supprimer de ICollection<T>.

Retours

true si item a été correctement supprimé de ICollection<T> ; sinon false. Cette méthode retourne également false si item est introuvable dans le ICollection<T> d'origine.

Implémente

Remarques

Notes

L’espace System.Json de noms a été conçu pour Silverlight, qui n’est plus pris en charge. Pour traiter JSON, nous vous recommandons d’utiliser des API dans l’espace de noms à la System.Text.Json place.

S’applique à