Export (0) Print
Expand All

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.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method Static member IndexOf<T>(T[], T) Searches for the specified object and returns the index of its first occurrence in a one-dimensional array.
Public method Static member IndexOf(Array, Object) Searches for the specified object and returns the index of its first occurrence in a one-dimensional array.
Public method Static member IndexOf<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.
Public method Static member IndexOf(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.
Public method Static member IndexOf<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.
Public method Static member IndexOf(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.
Top
Show:
© 2014 Microsoft