IsSubsetOf Method

ISet(Of T).IsSubsetOf Method

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

Determines whether a set is a subset of a specified collection.

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

'Declaration
Function IsSubsetOf ( _
	other As IEnumerable(Of T) _
) As Boolean

Parameters

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

Return Value

Type: System.Boolean
true if the current set is a subset of other; otherwise, false.

ExceptionCondition
ArgumentNullException

other is Nothing.

If other contains the same elements as the current set, the current set is still considered a subset of other.

This method always returns false if the current set has elements that are not in other.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft