JsonObject.ICollection<KeyValuePair<String,JsonNode>>.Remove 方法

定義

JsonObject 移除索引鍵和值。

 virtual bool System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Text.Json.Nodes.JsonNode>>.Remove(System::Collections::Generic::KeyValuePair<System::String ^, System::Text::Json::Nodes::JsonNode ^> item) = System::Collections::Generic::ICollection<System::Collections::Generic::KeyValuePair<System::String ^, System::Text::Json::Nodes::JsonNode ^>>::Remove;
bool ICollection<KeyValuePair<string,JsonNode>>.Remove (System.Collections.Generic.KeyValuePair<string,System.Text.Json.Nodes.JsonNode> item);
abstract member System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Text.Json.Nodes.JsonNode>>.Remove : System.Collections.Generic.KeyValuePair<string, System.Text.Json.Nodes.JsonNode> -> bool
override this.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Text.Json.Nodes.JsonNode>>.Remove : System.Collections.Generic.KeyValuePair<string, System.Text.Json.Nodes.JsonNode> -> bool
Function Remove (item As KeyValuePair(Of String, JsonNode)) As Boolean Implements ICollection(Of KeyValuePair(Of String, JsonNode)).Remove

參數

item
KeyValuePair<String,JsonNode>

KeyValuePair 結構,表示要從 JsonObject 中移除的屬性名稱和值。

傳回

Boolean

如果成功移除項目,則為 true,否則為 false

實作

適用於