## CookieCollection::Contains method


检查集合是否包含指定的 cookie。

```cpp
bool System::Net::CookieCollection::Contains(const System::SharedPtr<Cookie> &cookie) const override
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| Cookie | const System::SharedPtr\<Cookie\>\& | 要检查的 cookie。 |

### ReturnValue

如果集合包含指定的 cookie，则为 true；否则为 false。

## 另见

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Cookie](../../cookie/)
* Class [CookieCollection](../)
* Namespace [System::Net](../../)
* Library [Aspose.Font for C++](../../../)
