MapView::First Method
Collapse the table of content
Expand the table of content

MapView::First Method

 

Returns an iterator that specifies the first element in the map view.


virtual Windows::Foundation::Collections::IIterator<
Windows::Foundation::Collections::IKeyValuePair<K, V>^>^ 
First();

An iterator that specifies the first element in the map view.

A convenient way to hold the iterator returned by First() is to assign the return value to a variable that is declared with the auto type deduction keyword. For example, auto x = myMapView->First();.

Requirements

Header: collection.h

Namespace: Platform::Collections

Show:
© 2016 Microsoft