ITableEntriesSnapshot.IndexOf(Int32, ITableEntriesSnapshot) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回此快照在后面的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。