ArraySegment<T>.ICollection<T>.Contains(T) ArraySegment<T>.ICollection<T>.Contains(T) ArraySegment<T>.ICollection<T>.Contains(T) Method

定义

确定数组段是否包含特定值。Determines whether the array segment contains a specific value.

 virtual bool System.Collections.Generic.ICollection<T>.Contains(T item) = System::Collections::Generic::ICollection<T>::Contains;
bool ICollection<T>.Contains (T item);
Function Contains (item As T) As Boolean Implements ICollection(Of T).Contains

参数

item
T T T

要在数组段中查找的对象。The object to locate in the array segment.

返回

如果在数组段中找到 item,则为 true;否则为 falsetrue if item is found in the array segment; otherwise, false.

实现

注解

此成员是显式接口成员的实现。This member is an explicit interface member implementation. 它只能在 ArraySegment<T> 实例被强制转换为 ICollection<T> 接口时使用。It can be used only when the ArraySegment<T> instance is cast to an ICollection<T> interface.

适用于