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>,才能使用它。