Collections.UnmodifiableSortedMap(IDictionary) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns an unmodifiable view of the specified sorted map.
[Android.Runtime.Register("unmodifiableSortedMap", "(Ljava/util/SortedMap;)Ljava/util/SortedMap;", "")]
[Java.Interop.JavaTypeParameters(new System.String[] { "K", "V" })]
public static System.Collections.IDictionary UnmodifiableSortedMap (System.Collections.IDictionary m);
[<Android.Runtime.Register("unmodifiableSortedMap", "(Ljava/util/SortedMap;)Ljava/util/SortedMap;", "")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "K", "V" })>]
static member UnmodifiableSortedMap : System.Collections.IDictionary -> System.Collections.IDictionary
Parameters
the sorted map for which an unmodifiable view is to be returned.
Returns
an unmodifiable view of the specified sorted map.
- Attributes
Remarks
Returns an unmodifiable view of the specified sorted map. Query operations on the returned sorted map "read through" to the specified sorted map. Attempts to modify the returned sorted map, whether direct, via its collection views, or via its subMap
, headMap
, or tailMap
views, result in an UnsupportedOperationException
.
The returned sorted map will be serializable if the specified sorted map is serializable.
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.