ArraySegment<T>.ICollection<T>.Contains(T) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
判斷陣列區段是否包含特定值。
virtual bool System.Collections.Generic.ICollection<T>.Contains(T item) = System::Collections::Generic::ICollection<T>::Contains;
bool ICollection<T>.Contains(T item);
abstract member System.Collections.Generic.ICollection<T>.Contains : 'T -> bool
override this.System.Collections.Generic.ICollection<T>.Contains : 'T -> bool
Function Contains (item As T) As Boolean Implements ICollection(Of T).Contains
參數
- item
- T
要定位在陣列區段中的物件。
傳回
true若 item 位於陣列段中;否則 。 false
實作
例外狀況
底層陣列為 null。
備註
此成員為明確介面成員實作。 它只能在實 ArraySegment<T> 例投射到 ICollection<T> 介面時使用。