Map::Lookup Method
Collapse the table of content
Expand the table of content

Map::Lookup Method


Retrieves the value of type V that is associated with the specified key of type K, if the key exists.

V Lookup(
   K key


The key used to locate an element in the Map. The type of key is typename K.

The value that is paired with the key. The type of the return value is typename V.

If the key does not exist, then a Platform::OutOfBoundsException is thrown.


Header: collection.h

Namespace: Platform::Collections

© 2017 Microsoft