Bewerken

Delen via


SynchronizedReadOnlyCollection<T>.IndexOf(T) Method

Definition

Returns the index of the first occurrence of a value in the collection.

public:
 virtual int IndexOf(T value);
public int IndexOf (T value);
abstract member IndexOf : 'T -> int
override this.IndexOf : 'T -> int
Public Function IndexOf (value As T) As Integer

Parameters

value
T

The element whose index is being retrieved.

Returns

The zero-based index of the first occurrence of the value in the collection.

Implements

Applies to