IMap<K,V>.Lookup(K) Method

Definition

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

V

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