IMap<K,V>.Lookup(K) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the item at the specified key in the map.
public:
V Lookup(K key);
V Lookup(K const& key);
public V Lookup(K key);
Public Function Lookup (key As K) As V
Parameters
- key
- K
The key associated with the item to locate.
Returns
The value of the item with the specified key if such item exists, otherwise E_BOUNDS. Use the HasKey method to determine whether the key exists.
Remarks
When programming with .NET, this interface is hidden and developers should use the System.Collections.Generic.IDictionary<TKey,TValue> interface.
Use the HasKey method to determine whether the key exists in the map.
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for