ListSortDescriptionCollection.IList.Remove Method (Object)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Removes the first occurrence of an item from the collection.

Namespace:   System.ComponentModel
Assembly:  System (in System.dll)

void IList.Remove(
	object value
)

Parameters

value
Type: System.Object

The item to remove from the collection.

Exception Condition
InvalidOperationException

In all cases.

Because the ListSortDescriptionCollection class implements the System.Collections.IList interface, it must have a IList.Remove method. However, because the ListSortDescriptionCollection class represents a read-only collection, removing items from the collection is an invalid operation.

.NET Framework
Available since 2.0
Return to top
Show: