ISet<T>.IsSupersetOf(IEnumerable<T>) 方法

定義

判斷目前的資料集是否為指定之集合的超集。

public:
 bool IsSupersetOf(System::Collections::Generic::IEnumerable<T> ^ other);
public bool IsSupersetOf (System.Collections.Generic.IEnumerable<T> other);
abstract member IsSupersetOf : seq<'T> -> bool
Public Function IsSupersetOf (other As IEnumerable(Of T)) As Boolean

參數

other
IEnumerable<T>

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

傳回

如果目前資料集是 other 的超集,則為 true,否則為 false

例外狀況

othernull

備註

如果 other 包含與目前集合相同的元素,則目前集合仍被視為的 other超集。

如果目前的集合的專案少於 other,這個方法一律會傳false回 。

適用於