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> 中删除的对象。

返回

如果从 true 中成功移除 item,则为 ICollection<T>;否则为 false。 如果在原始 false 中没有找到 item,该方法也会返回 ICollection<T>

实现

注解

注意

命名空间 System.Json 是为不再受支持的 Silverlight 设计的。 若要处理 JSON,建议改用 命名空间中的 System.Text.Json API。

适用于