ISet<T>.ExceptWith(IEnumerable<T>) 方法 
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从当前集内移除指定集合中的所有元素。
public:
 void ExceptWith(System::Collections::Generic::IEnumerable<T> ^ other);public void ExceptWith (System.Collections.Generic.IEnumerable<T> other);abstract member ExceptWith : seq<'T> -> unitPublic Sub ExceptWith (other As IEnumerable(Of T))参数
- other
- IEnumerable<T>
要从集内移除的项的集合。
例外
              other 为 null。
注解
此方法是 O (n) 操作,其中 n 是 参数中的 other 元素数。