GroupCollection.IList.Contains(Object) 方法

定义

确定组集合中是否包含特定的组项。Determines whether the group collection contains a specific group item.

 virtual bool System.Collections.IList.Contains(System::Object ^ value) = System::Collections::IList::Contains;
bool IList.Contains (object value);
Function Contains (value As Object) As Boolean Implements IList.Contains

参数

value
Object

要在组集合中查找的组。The group to locate in the group collection.

返回

如果在组集合中找到该项组,则为 true;否则为 falsetrue if the group item is found in the group collection; false otherwise.

实现

注解

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

适用于