Condividi tramite


PSDataCollection<T>.IndexOf(T) Method

Definition

Determines the index of a specific item in the buffer.

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

Parameters

item
T

The object to locate in the buffer.

Returns

The index of item if found in the buffer; otherwise, -1.

Implements

Applies to