CompositeCollection.IndexOf(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the index in this collection where the given item is found.
public:
virtual int IndexOf(System::Object ^ indexItem);
public int IndexOf (object indexItem);
abstract member IndexOf : obj -> int
override this.IndexOf : obj -> int
Public Function IndexOf (indexItem As Object) As Integer
Parameters
- indexItem
- Object
The item to retrieve the index for.
Returns
If the item appears in the collection, then the zero-based index in the collection where the given item is found; otherwise, -1
.
Implements
Applies to
Spolupráca s nami v službe GitHub
Zdroj tohto obsahu nájdete v službe GitHub, kde môžete vytvárať a skúmať problémy a žiadosti o prijatie zmien. Ďalšie informácie nájdete v našom sprievodcovi prispievateľom.