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

Definicja

Usuwa pierwsze wystąpienie określonego obiektu z obiektu 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>

Obiekt do usunięcia z obiektu ICollection<T>.

Zwraca

true jeśli item element został pomyślnie usunięty z obiektu ICollection<T>; w przeciwnym razie false. Ta metoda zwraca również wartość false , jeśli item nie zostanie znaleziona w oryginalnym ICollection<T>obiekcie .

Implementuje

Uwagi

Uwaga

Przestrzeń nazw została zaprojektowana System.Json dla programu Silverlight, który nie jest już obsługiwany. W przypadku przetwarzania kodu JSON zalecamy zamiast tego używanie interfejsów API w System.Text.Json przestrzeni nazw.

Dotyczy