ListView::CheckedListViewItemCollection::ContainsKey Method (String^)
.NET Framework (current version)
Determines if a column with the specified key is contained in the collection.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- key
-
Type:
System::String^
The name of the item to search for.
Return Value
Type: System::Booleantrue if an item with the specified key is contained in the collection; otherwise, false.
| Exception | Condition |
|---|---|
| InvalidOperationException | The owner ListView is in virtual mode. |
The Name property of a ListViewItem corresponds to the key for an item in the ListView::CheckedListViewItemCollection.
.NET Framework
Available since 2.0
Available since 2.0
Show: