IndexOf Method

Array.IndexOf Method

 

Searches for the specified object and returns the index of itsfirst 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>(T[], T)

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

System_CAPS_pubmethodSystem_CAPS_staticIndexOf<T>(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>(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:
© 2016 Microsoft