## StringCollection::Contains method


检查特定字符串是否存在于容器中。

```cpp
bool System::Collections::Specialized::StringCollection::Contains(const System::String &value) const
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| value | const System::String\& | [String](../../../system/string/) 要查找的字符串。 |

### ReturnValue

如果找到字符串则返回 true，否则返回 false。

## 另见

* Class [String](../../../system/string/)
* Class [StringCollection](../)
* Namespace [System::Collections::Specialized](../../)
* Library [Aspose.Page for C++](../../../)
