Sdílet prostřednictvím


IList.AddAll Method

Definition

Overloads

AddAll(ICollection)

Appends all of the elements in the specified collection to the end of this list, in the order that they are returned by the specified collection's iterator (optional operation).

AddAll(Int32, ICollection)

Inserts all of the elements in the specified collection into this list at the specified position (optional operation).

AddAll(ICollection)

Appends all of the elements in the specified collection to the end of this list, in the order that they are returned by the specified collection's iterator (optional operation).

[Android.Runtime.Register("addAll", "(Ljava/util/Collection;)Z", "GetAddAll_Ljava_util_Collection_Handler:Java.Util.IListInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool AddAll (System.Collections.ICollection c);
[<Android.Runtime.Register("addAll", "(Ljava/util/Collection;)Z", "GetAddAll_Ljava_util_Collection_Handler:Java.Util.IListInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member AddAll : System.Collections.ICollection -> bool

Parameters

c
ICollection

collection containing elements to be added to this list

Returns

true if this list changed as a result of the call

Implements

Attributes

Remarks

Appends all of the elements in the specified collection to the end of this list, in the order that they are returned by the specified collection's iterator (optional operation). The behavior of this operation is undefined if the specified collection is modified while the operation is in progress. (Note that this will occur if the specified collection is this list, and it's nonempty.)

Java documentation for java.util.List.addAll(java.util.Collection<? extends E>).

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

AddAll(Int32, ICollection)

Inserts all of the elements in the specified collection into this list at the specified position (optional operation).

[Android.Runtime.Register("addAll", "(ILjava/util/Collection;)Z", "GetAddAll_ILjava_util_Collection_Handler:Java.Util.IListInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool AddAll (int index, System.Collections.ICollection c);
[<Android.Runtime.Register("addAll", "(ILjava/util/Collection;)Z", "GetAddAll_ILjava_util_Collection_Handler:Java.Util.IListInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member AddAll : int * System.Collections.ICollection -> bool

Parameters

index
Int32

index at which to insert the first element from the specified collection

c
ICollection

collection containing elements to be added to this list

Returns

true if this list changed as a result of the call

Attributes

Remarks

Inserts all of the elements in the specified collection into this list at the specified position (optional operation). Shifts the element currently at that position (if any) and any subsequent elements to the right (increases their indices). The new elements will appear in this list in the order that they are returned by the specified collection's iterator. The behavior of this operation is undefined if the specified collection is modified while the operation is in progress. (Note that this will occur if the specified collection is this list, and it's nonempty.)

Java documentation for java.util.List.addAll(int, java.util.Collection<? extends E>).

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