語言

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。

Note

若 AllowRemove 返回 false, IList.Remove 則 IList.RemoveAt 拋出 NotSupportedException。

適用於