ImmutableHashSet<T>.IImmutableSet<T>.Except 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從目前集合中移除指定集合中的專案。
virtual System::Collections::Immutable::IImmutableSet<T> ^ System.Collections.Immutable.IImmutableSet<T>.Except(System::Collections::Generic::IEnumerable<T> ^ other) = System::Collections::Immutable::IImmutableSet<T>::Except;
System.Collections.Immutable.IImmutableSet<T> IImmutableSet<T>.Except(System.Collections.Generic.IEnumerable<T> other);
abstract member System.Collections.Immutable.IImmutableSet<T>.Except : seq<'T> -> System.Collections.Immutable.IImmutableSet<'T>
override this.System.Collections.Immutable.IImmutableSet<T>.Except : seq<'T> -> System.Collections.Immutable.IImmutableSet<'T>
Function Except (other As IEnumerable(Of T)) As IImmutableSet(Of T) Implements IImmutableSet(Of T).Except
參數
- other
- IEnumerable<T>
這是要從這套中移除的物品集合。
傳回
新一組移除物品的套裝;如果套組裡沒有物品,則只能拿原版。
實作
備註
此成員為明確介面成員實作。 它只能在實 ImmutableHashSet<T> 例投射到 IImmutableSet<T> 介面時使用。