## ICollection::Contains method


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

```cpp
virtual bool System::Collections::Generic::ICollection<T>::Contains(const T &item) const =0
```


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

### ReturnValue

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

## 另见

* Class [ICollection](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.Font for C++](../../../)
