System::Collections::Generic::SortedList::IndexOfKey 方法

SortedList::IndexOfKey method

查找特定键。

int System::Collections::Generic::SortedList<TKey, TValue>::IndexOfKey(TKey key) const
参数类型描述
TKey要查找的键。

ReturnValue

指定键的索引,如果未找到则为 -1。

另见