Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Array::IndexOf Method

 

Searches for the specified object and returns the index of its first occurrence in a one-dimensional array or in a range of elements in the array.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticIndexOf(Array^, Object^)

Searches for the specified object and returns the index of its first occurrence in a one-dimensional array.

System_CAPS_pubmethodSystem_CAPS_staticIndexOf(Array^, Object^, Int32)

Searches for the specified object in a range of elements of a one-dimensional array, and returns the index of its first occurrence. The range extends from a specified index to the end of the array.

System_CAPS_pubmethodSystem_CAPS_staticIndexOf(Array^, Object^, Int32, Int32)

Searches for the specified object in a range of elements of a one-dimensional array, and returns the index of ifs first occurrence. The range extends from a specified index for a specified number of elements.

System_CAPS_pubmethodSystem_CAPS_staticIndexOf<T>(array<T>^, T)

Searches for the specified object and returns the index of its first occurrence in a one-dimensional array.

System_CAPS_pubmethodSystem_CAPS_staticIndexOf<T>(array<T>^, T, Int32)

Searches for the specified object in a range of elements of a one dimensional array, and returns the index of its first occurrence. The range extends from a specified index to the end of the array.

System_CAPS_pubmethodSystem_CAPS_staticIndexOf<T>(array<T>^, T, Int32, Int32)

Searches for the specified object in a range of elements of a one-dimensional array, and returns the index of its first occurrence. The range extends from a specified index for a specified number of elements.

Return to top
Show:
© 2017 Microsoft