.NET Framework (current version)
Gets or sets a value indicating whether you can remove items from the collection.
System (in System.dll)
member AllowRemove : bool with get, set
true if you can remove items from the list with the RemoveItem method otherwise, false. The default is true.
The AllowRemove property is typically used by other components to determine if the removal of items is allowed.
When AllowRemove is set to a new value, a ListChanged event of type Reset occurs.
The following code example demonstrates how to set the AllowRemove property. For the complete example, see the BindingList<'T> class overview topic.
No code example is currently available or this language may not be supported.
Return to top
Available since 2.0