ListView.CheckedListViewItemCollection.ContainsKey(String) Метод
Определение
Определяет, содержится ли в коллекции столбец с указанным ключом.Determines if a column with the specified key is contained in the collection.
public:
virtual bool ContainsKey(System::String ^ key);
public virtual bool ContainsKey (string key);
abstract member ContainsKey : string -> bool
override this.ContainsKey : string -> bool
Public Overridable Function ContainsKey (key As String) As Boolean
Параметры
- key
- String
Имя искомого элемента.The name of the item to search for.
Возвращаемое значение
Значение true
, если в коллекции содержится элемент с указанным ключом, и значение false
, если это не так.true
if an item with the specified key is contained in the collection; otherwise, false
.
Исключения
Комментарии
NameСвойство объекта ListViewItem соответствует ключу элемента в ListView.CheckedListViewItemCollection .The Name property of a ListViewItem corresponds to the key for an item in the ListView.CheckedListViewItemCollection.