Control.ControlCollection.IList.Contains(Object) Control.ControlCollection.IList.Contains(Object) Control.ControlCollection.IList.Contains(Object) Method

定义

有关此成员的说明,请参见 Contains(Object)For a description of this member, see Contains(Object).

此 API 支持产品基础结构,不能在代码中直接使用。

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

参数

control
Object Object Object

要在 Control.ControlCollection 中定位的对象。The object to locate in the Control.ControlCollection.

返回

如果 Control.ControlCollection 包含具有指定对象的元素,则为 true;否则为 falsetrue if the Control.ControlCollection contains an element that has the specified object; otherwise, false.

实现

注解

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

适用于