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

實作

例外狀況

在所有情況下。

適用於