Delen via


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

Definition

Returns the item at the specified key in the map view.

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 to locate in the map view.

Returns

V

The value, if an item with the specified key exists. 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.IReadOnlyDictionary<TKey,TValue> interface.

Applies to

See also