Dela via


ISortedMap.KeySet Method

Definition

Returns a Set view of the keys contained in this map.

[Android.Runtime.Register("keySet", "()Ljava/util/Set;", "GetKeySetHandler:Java.Util.ISortedMapInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=24)]
public System.Collections.ICollection KeySet ();
[<Android.Runtime.Register("keySet", "()Ljava/util/Set;", "GetKeySetHandler:Java.Util.ISortedMapInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=24)>]
abstract member KeySet : unit -> System.Collections.ICollection

Returns

a set view of the keys contained in this map, sorted in ascending order

Implements

Attributes

Remarks

Returns a Set view of the keys contained in this map. The set's iterator returns the keys in ascending order. The set is backed by the map, so changes to the map are reflected in the set, and vice-versa. If the map is modified while an iteration over the set is in progress (except through the iterator's own remove operation), the results of the iteration are undefined. The set supports element removal, which removes the corresponding mapping from the map, via the Iterator.remove, Set.remove, removeAll, retainAll, and clear operations. It does not support the add or addAll operations.

Java documentation for java.util.SortedMap.keySet().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to