## CookieCollection::IndexOf method


يعيد فهرسًا للكوكي المحدد.

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


| Parameter | Type | الوصف |
| --- | --- | --- |
| ملف تعريف الارتباط | System::SharedPtr\<Cookie\> | الكوكي للبحث عنه. |

### ReturnValue

فهرس الكوكي المحدد إذا تم العثور عليه، وإلا -1.

## انظر أيضًا

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