## CookieCollection::Contains method


Checks if the collection contains the specified cookie.

```cpp
bool System::Net::CookieCollection::Contains(const System::SharedPtr<Cookie> &cookie) const override
```


| Parameter | Type | Description |
| --- | --- | --- |
| cookie | const System::SharedPtr\<Cookie\>\& | The cookie to check. |

### ReturnValue

True when the collection contains the specified cookie, otherwise false.

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Cookie](../../cookie/)
* Class [CookieCollection](../)
* Namespace [System::Net](../../)
* Library [Aspose.PDF for C++](../../../)
