This documentation is archived and is not being maintained.

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.

Name Description
Array.LastIndexOf (Array, Object) Searches for the specified object and returns the index of the last occurrence within the entire one-dimensional Array.
Array.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.
Array.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.

Supported by the .NET Compact Framework.

Array.LastIndexOf (T[], T) Searches for the specified object and returns the index of the last occurrence within the entire Array.

Supported by the .NET Compact Framework.

Array.LastIndexOf (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.

Supported by the .NET Compact Framework.

Array.LastIndexOf (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.

Supported by the .NET Compact Framework.

Show: