This documentation is archived and is not being maintained.

IBindingList.AllowRemove Property

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

[Visual Basic]
ReadOnly Property AllowRemove As Boolean
bool AllowRemove {get;}
__property bool get_AllowRemove();
function get AllowRemove() : Boolean;

Property Value

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


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

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


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

IBindingList Interface | IBindingList Members | System.ComponentModel Namespace