ISet<T>.ExceptWith(IEnumerable<T>) 方法

定義

從目前的資料集中,移除指定之集合內的所有項目。

public:
 void ExceptWith(System::Collections::Generic::IEnumerable<T> ^ other);
public void ExceptWith (System.Collections.Generic.IEnumerable<T> other);
abstract member ExceptWith : seq<'T> -> unit
Public Sub ExceptWith (other As IEnumerable(Of T))

參數

other
IEnumerable<T>

要從資料集移除的項目集合。

例外狀況

othernull

備註

這個方法是 O (n) 作業,其中 n 是 參數中的 other 元素數目。

適用於