语言

IBindingList.AllowRemove 属性

定义

获取是否可以使用 Remove(Object) 或 RemoveAt(Int32)从列表中删除项。

public:
 property bool AllowRemove { bool get(); };
public bool AllowRemove { get; }
member this.AllowRemove : bool
Public ReadOnly Property AllowRemove As Boolean

属性值

true 如果可从列表中删除项,则为否则,为 false.

注解

如果 IList.IsFixedSize 或 IList.IsReadOnly 为 true,则此属性返回 false。

注释

如果 AllowRemove 返回 false, IList.Remove 并 IList.RemoveAt 引发一个 NotSupportedException。

适用于