語言

Array.IList.Contains(Object) 方法

定義

判斷專案是否在 IList中。

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

參數

value
Object

要在目前清單中找到的物件。 要定位的元素可以是 null 參考型別。

傳回

true 若 value 在 中; IList否則, false。

實作

備註

此成員為明確介面成員實作。 它只能在實 Array 例投射到 IList 介面時使用。

適用於