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

定义

JsonObject确定是否包含特定的属性名称和JsonNode引用。

 virtual bool System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Text.Json.Nodes.JsonNode>>.Contains(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 ^>>::Contains;
bool ICollection<KeyValuePair<string,JsonNode>>.Contains (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>>.Contains : 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>>.Contains : System.Collections.Generic.KeyValuePair<string, System.Text.Json.Nodes.JsonNode> -> bool
Function Contains (item As KeyValuePair(Of String, JsonNode)) As Boolean Implements ICollection(Of KeyValuePair(Of String, JsonNode)).Contains

参数

item
KeyValuePair<String,JsonNode>

要查找到的元素。JsonObject

返回

Boolean

trueJsonObject如果包含具有属性名称的元素,则为 ;否则为 false

实现

适用于