다음을 통해 공유


Array.IndexOf Method

Returns the index number of the first occurrence of a specified object (if any) in a one-dimensional array or in a specified range within that array.

Overload List

Name Description
Array.IndexOf (Array, Object) Searches an entire one-dimensional array for a specified object and returns the index number of the first occurrence of that object (if any) in the array.
Array.IndexOf (Array, Object, Int32) Searches for a specified object in a defined range (search range) within a one-dimensional array, starting at a specified index number and ending at the last object in the entire array. Returns the index number of the first occurrence of that object (if any) in the search range.
Array.IndexOf (Array, Object, Int32, Int32) Searches for a specified object in a defined range (search range) within a one-dimensional array, starting at the specified index number and searching through a specified number of objects. Returns the index number of the first occurrence of that object (if any) in the search range.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, 4.1, and 4.2.

See Also

Reference

Array Class
Array Members
System Namespace