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>

要與目前資料組比較的集合。

例外狀況

othernull

備註

other 任何重複的項目都會被忽略。

適用於