JsonArray.Contains(JsonValue) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
确定 ICollection<T> 是否包含特定值。
public:
virtual bool Contains(System::Json::JsonValue ^ item);
public bool Contains (System.Json.JsonValue item);
abstract member Contains : System.Json.JsonValue -> bool
override this.Contains : System.Json.JsonValue -> bool
Public Function Contains (item As JsonValue) As Boolean
参数
- item
- JsonValue
要在 ICollection<T> 中定位的对象。
返回
如果在 true
中找到 item
,则为 ICollection<T>;否则为 false
。
实现
注解
### 备注
备注
该 System.Json 命名空间是为不再受支持的 Silverlight 设计的。 若要处理 JSON,我们建议改用命名空间中的 System.Text.Json API。