## IList::IndexOf method


Gets the first index of the specified item.

```cpp
virtual int System::Collections::IList::IndexOf(SharedPtr<System::Object> item) const =0
```


| Parameter | Type | Description |
| --- | --- | --- |
| item | SharedPtr\<System::Object\> | The item to look for. |

### ReturnValue

The index of the first occurrence of the specified item, otherwise -1.

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Object](../../../system/object/)
* Class [IList](../)
* Namespace [System::Collections](../../)
* Library [Aspose.PUB for C++](../../../)
