語言

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

定義

修改目前的集合,使其包含目前集合、指定集合或兩者中存在的所有專案。

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

參數

other
IEnumerable<T>

用來和現有的系列做比較。

例外狀況

other 是 null。

備註

任何重複元素 other 都被忽略。

適用於