Collection.IList.Contains(Object) 方法

定義

判斷 Collection 物件是否包含特定的值。Determines whether the Collection object contains a specific value.

 virtual bool IListContains(System::Object ^ value) = System::Collections::IList::Contains;
bool IList.Contains (object value);
Function IListContains (value As Object) As Boolean Implements IList.Contains

參數

value
Object

要在 Object 物件中尋找的 CollectionThe Object to locate in the Collection object.

傳回

如果在 Object 物件中找到 Collection,則傳回 True,否則傳回 FalseReturns True if the Object is found in the Collection object; otherwise, False.

備註

這個方法會判斷 Collection 物件是否包含特定值。This method determines whether the Collection object contains a specific value.

適用於

另請參閱