ISet<T>.IsSupersetOf Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Determines whether the current set is a superset of a specified collection.

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

Syntax

'Declaration
Function IsSupersetOf ( _
    other As IEnumerable(Of T) _
) As Boolean
bool IsSupersetOf(
    IEnumerable<T> other
)

Parameters

Return Value

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

Exceptions

Exception Condition
ArgumentNullException

other is nulla null reference (Nothing in Visual Basic).

Remarks

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

This method always returns false if the current set has fewer elements than other.

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.