SynchronizedReadOnlyCollection<T>.IList.Contains(Object) 方法

定義

檢查指定的物件是否存在集合中。

 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

要在集合中找出的物件。

傳回

若物件位於集合中,則為 true;否則為 false

實作

例外狀況

value 不是包含在集合中之型別的物件。

適用於