DataGridViewComboBoxCell.ObjectCollection.Contains(Object) DataGridViewComboBoxCell.ObjectCollection.Contains(Object) DataGridViewComboBoxCell.ObjectCollection.Contains(Object) DataGridViewComboBoxCell.ObjectCollection.Contains(Object) Method

定義

判斷指定的項目是否包含在集合中。Determines whether the specified item is contained in the collection.

public:
 virtual bool Contains(System::Object ^ value);
public bool Contains (object value);
abstract member Contains : obj -> bool
override this.Contains : obj -> bool
Public Function Contains (value As Object) As Boolean

參數

value
Object Object Object Object

表示位於集合中項目的物件。An object representing the item to locate in the collection.

傳回

如果 item 位於集合中,則為 true,否則為 falsetrue if the item is in the collection; otherwise, false.

實作

例外狀況

適用於

另請參閱