语言

ImageList.ImageCollection.Contains(Image) 方法

定义

不支持。 该方法 Contains(Object) 指示指定对象是否包含在列表中。

public:
 bool Contains(System::Drawing::Image ^ image);
public bool Contains(System.Drawing.Image image);
member this.Contains : System.Drawing.Image -> bool
Public Function Contains (image As Image) As Boolean

参数

image
Image

在 Image 列表中查找的项。

返回

true 如果在列表中找到图像,则为否则,为 false.

例外

不支持此方法。

注解

此方法的 Contains 此实现将引发异常 NotSupportedException 。

适用于

另请参阅