[]
Returns the 0-based index of a TItem
with specified key in the current OwnedKeyedCollection<TKey, TItem>.
public int IndexOfKey(TKey key)
Public Function IndexOfKey(key As TKey) As Integer
| Type | Name | Description |
|---|---|---|
| TKey | key | The key of the item to locate. |
| Type | Description |
|---|---|
| int | The 0-based index of the specified item, or -1 if the item was not found. |