共用方式為


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。

適用於