ReadOnlyCollectionBuilder<T>.Contains(T) 方法

定义

确定 ReadOnlyCollectionBuilder<T> 是否包含特定值。Determines whether the ReadOnlyCollectionBuilder<T> contains a specific value.

public:
 virtual bool Contains(T item);
public bool Contains (T item);
abstract member Contains : 'T -> bool
override this.Contains : 'T -> bool
Public Function Contains (item As T) As Boolean

参数

item
T

要在 ReadOnlyCollectionBuilder<T> 中定位的对象。the object to locate in the ReadOnlyCollectionBuilder<T>.

返回

如果在 true 中找到该项,则为 ReadOnlyCollectionBuilder<T>;否则为 falsetrue if item is found in the ReadOnlyCollectionBuilder<T>; otherwise, false.

实现

适用于