語言

ICollection.RemoveAll(ICollection) 方法

定義

移除該集合中所有同時包含於指定集合中的元素(可選操作)。

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

參數

c
ICollection

包含將從本收藏中移除元素的集合

傳回

true 如果這個集合因呼叫而改變

屬性

備註

移除該集合中所有同時包含於指定集合中的元素(可選操作)。 呼叫回傳後,該集合將不包含與指定集合相同的元素。

java.util.Collection.removeAll(java.util.Collection<?>)Java 檔。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於