ITableEntriesSnapshot.IndexOf(Int32, ITableEntriesSnapshot) 方法

定义

返回此快照在后面的newSnapshot快照 () 中位于 的项currentIndex的索引。

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

参数

currentIndex
Int32

ITableEntriesSnapshot中的项的索引。

newSnapshot
ITableEntriesSnapshot

所需快照。

返回

中的 newSnapshot 索引(如果存在),否则为 -1。

适用于