## CookieCollection::Contains method


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

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


| Parameter | Type | 描述 |
| --- | --- | --- |
| cookie | const System::SharedPtr\<Cookie\>\& | 要检查的 cookie。 |

### ReturnValue

当集合中包含指定的 cookie 时为 true，否则为 false。

## 另见

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