Share via


ITableEntriesSnapshot.IndexOf(Int32, ITableEntriesSnapshot) Method

Definition

Returns the index of the entry at currentIndex in this snapshot in a later snapshot (newSnapshot).

public:
 int IndexOf(int currentIndex, Microsoft::VisualStudio::Shell::TableManager::ITableEntriesSnapshot ^ newSnapshot);
public int IndexOf (int currentIndex, Microsoft.VisualStudio.Shell.TableManager.ITableEntriesSnapshot newSnapshot);
abstract member IndexOf : int * Microsoft.VisualStudio.Shell.TableManager.ITableEntriesSnapshot -> int
Public Function IndexOf (currentIndex As Integer, newSnapshot As ITableEntriesSnapshot) As Integer

Parameters

currentIndex
Int32

Index of the entry in this ITableEntriesSnapshot.

newSnapshot
ITableEntriesSnapshot

Desired snapshot.

Returns

The index in newSnapshot if it exists or -1 otherwise.

Applies to