## CookieCollection::InternalAdd method


Adds the specified cookie to the collection.

```cpp
int32_t System::Net::CookieCollection::InternalAdd(System::SharedPtr<Cookie> cookie, bool isStrict)
```


| Parameter | Type | Description |
| --- | --- | --- |
| cookie | System::SharedPtr\<Cookie\> | The cookie to add. |
| isStrict | bool | True when the specified cookie must replace the old one, otherwise false. |

### ReturnValue

0 when the specified cookie replaced the old one, otherwise 1.

## See Also

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