IBindingList.AllowRemove 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
判斷你是否能從列表中移除項目,使用 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。