IBindingList.AllowRemove Property


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

Gets whether you can remove items from the list, using Remove or RemoveAt.

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

bool AllowRemove { get; }

Property Value

Type: System.Boolean

true if you can remove items from the list; otherwise, false.

If IList.IsFixedSize or IList.IsReadOnly is true, this property returns false.


If AllowRemove returns false, IList.Remove and IList.RemoveAt throw a NotSupportedException.

.NET Framework
Available since 1.1
Return to top