Läs på engelska

Dela via


Collections.Enumeration(ICollection) Method

Definition

Returns an enumeration over the specified collection.

C#
[Android.Runtime.Register("enumeration", "(Ljava/util/Collection;)Ljava/util/Enumeration;", "")]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public static Java.Util.IEnumeration Enumeration(System.Collections.ICollection c);

Parameters

c
ICollection

the collection for which an enumeration is to be returned.

Returns

an enumeration over the specified collection.

Attributes

Remarks

Returns an enumeration over the specified collection. This provides interoperability with legacy APIs that require an enumeration as input.

The iterator returned from a call to Enumeration#asIterator() does not support removal of elements from the specified collection. This is necessary to avoid unintentionally increasing the capabilities of the returned enumeration.

Java documentation for java.util.Collections.enumeration(java.util.Collection<T>).

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

Produkt Versioner
.NET for Android .NET for Android API 34, .NET for Android API 35