ISet(Of T).IsProperSupersetOf Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Determines whether the current set is a correct superset of a specified collection.
Assembly: System (in System.dll)
Parameters
- other
- Type: System.Collections.Generic.IEnumerable(Of T)
The collection to compare to the current set.
Return Value
Type: System.Booleantrue if the ISet(Of T) object is a correct superset of other; otherwise, false.
| Exception | Condition |
|---|---|
| ArgumentNullException | other is Nothing. |
If the current set is considered a proper superset of other, the current set must have at least one element that other does not have.
An empty set is a proper superset of any other collection. Therefore, this method returns true if the collection represented by the other parameter is empty, unless the current set is also empty.
This method always returns false if the number of elements in the current set is less than or equal to the number of elements in other.