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>
用來和現有的系列做比較。
傳回
true 若當前集合是 的 other子集;否則, false。
例外狀況
other 是 null。
備註
若 other 包含與當前集合相同的元素,該當前集合仍被視為其他集合的子集合。
若當前集合中有不屬於false的元素,此方法總是回傳other。