## CookieCollection::IndexOf method


指定されたクッキーのインデックスを返します。

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


| パラメーター | 型 | 説明 |
| --- | --- | --- |
| クッキー | System::SharedPtr\<Cookie\> | 検索対象のクッキーです。 |

### ReturnValue

指定されたクッキーが見つかった場合はそのインデックスを、見つからない場合は -1 を返します。

## 参照

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