ListView::SelectedListViewItemCollection::ContainsKey Method (String^)
.NET Framework (current version)
Determines whether an item 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 find in the collection.
Return Value
Type: System::Booleantrue to indicate the specified item is contained in the collection; otherwise, false.
The Name property corresponds to the key for a ListViewItem in the ListView::SelectedListViewItemCollection.
The key comparison is not case-sensitive. If the key parameter is null or an empty string, ContainsKey returns false.
.NET Framework
Available since 2.0
Available since 2.0
Show: