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.IsFixedSizeIList.IsReadOnlytrue,則該性質返回 false

Note

AllowRemove 返回 falseIList.RemoveIList.RemoveAt 拋出 NotSupportedException

適用於