Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

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

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


Feedback

Was this page helpful?