ISet<T>.IsSubsetOf(IEnumerable<T>) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
判斷資料集是否為指定之集合的子集。
public:
bool IsSubsetOf(System::Collections::Generic::IEnumerable<T> ^ other);
public bool IsSubsetOf (System.Collections.Generic.IEnumerable<T> other);
abstract member IsSubsetOf : seq<'T> -> bool
Public Function IsSubsetOf (other As IEnumerable(Of T)) As Boolean
參數
- other
- IEnumerable<T>
要與目前資料組比較的集合。
傳回
如果目前資料集是 other 的子集,則為 true,否則為 false。
例外狀況
other 為 null。
備註
如果 other 包含與目前集合相同的元素,則目前集合仍被視為其他集合的子集。
如果目前集合的元素不在 中other,這個方法一律會false傳回 。