Int32Collection.Contains(Int32) Int32Collection.Contains(Int32) Int32Collection.Contains(Int32) Int32Collection.Contains(Int32) Method

定义

获取一个指示集合是否包含指定 Int32 的值。Gets a value that indicates whether the collection contains the specified Int32.

public:
 virtual bool Contains(int value);
public bool Contains (int value);
abstract member Contains : int -> bool
override this.Contains : int -> bool
Public Function Contains (value As Integer) As Boolean

参数

value
Int32 Int32 Int32 Int32

要在集合中查找的 Int32The Int32 to locate in the collection.

返回

如果在 Int32Collection 中找到了 Int32,则为 true;否则为 falsetrue if the Int32 is found in the Int32Collection; otherwise, false.

实现

适用于

另请参阅