System::Collections::Generic::SortedList::IndexOfKey 方法
SortedList::IndexOfKey method
查找特定键。
int System::Collections::Generic::SortedList<TKey, TValue>::IndexOfKey(TKey key) const
| Parameter | Type | 描述 |
|---|---|---|
| 键 | TKey | 要查找的键。 |
ReturnValue
指定键的索引,如果未找到则返回 -1。
另见
- Class SortedList
- Namespace System::Collections::Generic
- Library Aspose.Page for C++