JsonObject.Remove(String) 方法

定义

IDictionary<TKey,TValue> 中移除包含指定键的元素。

public:
 virtual bool Remove(System::String ^ key);
public bool Remove (string key);
abstract member Remove : string -> bool
override this.Remove : string -> bool
Public Function Remove (key As String) As Boolean

参数

key
String

要移除的元素的键。

返回

如果该元素已成功移除,则为 true;否则为 false。 如果在原始 false 中没有找到 key,此方法也会返回 IDictionary<TKey,TValue>

实现

注解

注意

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

适用于