Share via

IMap<K,V>.GetView Method


Returns an immutable view of the map.

 IMapView<K, V> ^ GetView();
IMapView<K, V> GetView();
public IReadOnlyDictionary<K,V> GetView();
Public Function GetView () As IReadOnlyDictionary(Of K, V)


The view of the map.


When programming with .NET, this interface is hidden and developers should use the System.Collections.Generic.IDictionary<TKey,TValue> interface.

If changes are made to the map, such as adding, modifying, or deleting elements, the map view is permitted to raise an exception for all future operations.

Applies to

See also