ListView.SelectedListViewItemCollection.IList.Remove Method (Object)

 

This API supports the product infrastructure and is not intended to be used directly from your code.

Removes the first occurrence of a specified item from the collection.

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

void IList.Remove(
	object value
)

Parameters

value
Type: System.Object

The object to remove from the ListView.SelectedListViewItemCollection.

Exception Condition
NotSupportedException

Always thrown.

You cannot change the ListView.SelectedListViewItemCollection class directly. To remove an item from the ListView.SelectedListViewItemCollection, use the Selected property.

.NET Framework
Available since 1.1
Return to top
Show: