## String >::Contains method


检查集合中是否存在该元素。

```cpp
bool System::Net::Http::Headers::HttpHeaderValueCollection<System::String>::Contains(const String &item) const override
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 项 | const String\& | 要查找的项。 |

### ReturnValue

如果元素存在则为 true，否则为 false。

## 另见

* Class [String](../../../system/string/)
* Class [String >](../)
* Namespace [System::Net::Http::Headers](../../)
* Library [Aspose.Font for C++](../../../)
