JsonObject.ICollection<KeyValuePair<String,JsonValue>>.Remove メソッド

定義

特定のオブジェクトが 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

パラメーター

item
KeyValuePair<String,JsonValue>

ICollection<T> から削除するオブジェクト。

戻り値

trueitem から正常に削除された場合は ICollection<T>。それ以外の場合は false。 このメソッドは、false が元の item に見つからない場合にも ICollection<T> を返します。

実装

注釈

注意

名前空間は System.Json Silverlight 用に設計されましたが、これはサポートされなくなりました。 JSON を処理する場合は、代わりに 名前空間で System.Text.Json API を使用することをお勧めします。

適用対象