KeyedCollection(Of TKey, TItem).GetKeyForItem Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
When implemented in a derived class, extracts the key from the specified element.
Assembly: mscorlib (in mscorlib.dll)
If the key in the lookup dictionary is different from the key that is embedded in item, you cannot access item by using the key returned by GetKeyForItem.
This method is an O(1) operation.
Notes for Implementers
You must override this method to provide the dictionary with a way to extract keys from items in the dictionary.
This method is called internally. It is not necessary for it to be public.