JsonArray.Contains(JsonValue) 方法

定义

确定 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> 中定位的对象。

返回

Boolean

如果在 true 中找到 item,则为 ICollection<T>;否则为 false

实现

注解

### 备注

备注

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

适用于