## CookieCollection::IndexOf method


Returnerar indexet för den angivna kakan.

```cpp
int32_t System::Net::CookieCollection::IndexOf(System::SharedPtr<Cookie> cookie)
```


| Parameter | Typ | Beskrivning |
| --- | --- | --- |
| cookie | System::SharedPtr\<Cookie\> | Cookie:n att söka efter. |

### ReturnValue

Ett index för den angivna cookien om den hittas, annars -1.

## Se även

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