IBindingList.AllowRemove Proprietà

Definizione

Ottiene un valore che indica se è possibile rimuovere elementi dall'elenco utilizzando Remove(Object) o RemoveAt(Int32).

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

Valore della proprietà

true se è possibile rimuovere elementi dall'elenco; in caso contrario, false.

Commenti

Se IList.IsFixedSize o IList.IsReadOnly è true, questa proprietà restituisce false.

Annotazioni

Se AllowRemove restituisce false, IList.Remove e IList.RemoveAt genera un'eccezione NotSupportedException.

Si applica a