ImageList.ImageCollection.IList.Contains(Object) 方法

定义

实现 Contains(Object) 方法。 在所有情况下均引发 NotSupportedException

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

 virtual bool System.Collections.IList.Contains(System::Object ^ image) = System::Collections::IList::Contains;
 virtual bool System.Collections.IList.Contains(System::Object ^ value) = System::Collections::IList::Contains;
bool IList.Contains (object image);
bool IList.Contains (object value);
bool IList.Contains (object? value);
abstract member System.Collections.IList.Contains : obj -> bool
override this.System.Collections.IList.Contains : obj -> bool
abstract member System.Collections.IList.Contains : obj -> bool
override this.System.Collections.IList.Contains : obj -> bool
Function Contains (image As Object) As Boolean Implements IList.Contains
Function Contains (value As Object) As Boolean Implements IList.Contains

参数

imagevalue
Object

要在 ImageList.ImageCollection 中查找的图像。

返回

如果在 IList 中找到了 Object,则为 true;否则为 false

实现

例外

在所有情况下。

适用于