ContainsKey Method

ListView.CheckedListViewItemCollection.ContainsKey Method (String)

 

Determines if a column with the specified key is contained in the collection.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public virtual bool ContainsKey(
	string key
)

Parameters

key
Type: System.String

The name of the item to search for.

Return Value

Type: System.Boolean

true 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
Return to top
Show:
© 2016 Microsoft