UnionWith Method

ISet(Of T).UnionWith Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Modifies the current set so that it contains all elements that are present in both the current set and in the specified collection.

Namespace:  System.Collections.Generic
Assembly:  System (in System.dll)

'Declaration
Sub UnionWith ( _
	other As IEnumerable(Of T) _
)

Parameters

other
Type: System.Collections.Generic.IEnumerable(Of T)
The collection to compare to the current set.

ExceptionCondition
ArgumentNullException

other is Nothing.

Any duplicate elements in other are ignored.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft