DataGridViewColumnCollection.IList.Contains(Object) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
判斷物件是否在集合中。
virtual bool System.Collections.IList.Contains(System::Object ^ value) = System::Collections::IList::Contains;
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
Function Contains (value As Object) As Boolean Implements IList.Contains
參數
傳回
如果在 true
中找到 value
,則為 DataGridViewColumnCollection,否則為 false
。
實作
例外狀況
value
為 null
。
備註
這個成員是明確介面成員實作, 只有在 DataGridViewColumnCollection 執行個體轉換成 IList 介面時,才能使用這個成員。