語言

ArraySegment<T>.ICollection<T>.Contains(T) 方法

定義

判斷陣列區段是否包含特定值。

 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> 介面時使用。

適用於