Collections.List(IEnumeration) 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 array list containing the elements returned by the specified enumeration in the order they are returned by the enumeration.
[Android.Runtime.Register("list", "(Ljava/util/Enumeration;)Ljava/util/ArrayList;", "")]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public static System.Collections.IList List (Java.Util.IEnumeration e);
[<Android.Runtime.Register("list", "(Ljava/util/Enumeration;)Ljava/util/ArrayList;", "")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
static member List : Java.Util.IEnumeration -> System.Collections.IList
Parameters
enumeration providing elements for the returned array list
Returns
an array list containing the elements returned by the specified enumeration.
- Attributes
Remarks
Returns an array list containing the elements returned by the specified enumeration in the order they are returned by the enumeration. This method provides interoperability between legacy APIs that return enumerations and new APIs that require collections.
Added in 1.4.
Java documentation for java.util.Collections.list(java.util.Enumeration<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.