Udostępnij za pośrednictwem


IMap<K,V>.GetView Method

Definition

Returns an immutable view of the map.

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

Returns

The view of the map.

Remarks

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