Array.LastIndexOf Method

Returns the index of the last occurrence of a value in a one-dimensional Array or in a portion of 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 LastIndexOf<T>(T[], T) Searches for the specified object and returns the index of the last occurrence within the entire Array.
Public method Static member LastIndexOf(Array, Object) Searches for the specified object and returns the index of the last occurrence within the entire one-dimensional Array.
Public method Static member LastIndexOf<T>(T[], T, Int32) Searches for the specified object and returns the index of the last occurrence within the range of elements in the Array that extends from the first element to the specified index.
Public method Static member LastIndexOf(Array, Object, Int32) Searches for the specified object and returns the index of the last occurrence within the range of elements in the one-dimensional Array that extends from the first element to the specified index.
Public method Static member LastIndexOf<T>(T[], T, Int32, Int32) Searches for the specified object and returns the index of the last occurrence within the range of elements in the Array that contains the specified number of elements and ends at the specified index.
Public method Static member LastIndexOf(Array, Object, Int32, Int32) Searches for the specified object and returns the index of the last occurrence within the range of elements in the one-dimensional Array that contains the specified number of elements and ends at the specified index.
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft