IBindingList.AllowRemove Proprietà

Definizione

Indica se è possibile rimuovere elementi dall'elenco utilizzando il metodo Remove(Object) o il metodo 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.

Nota

Se AllowRemove restituisce falsee IList.RemoveAtIList.Remove genera un'eccezione NotSupportedException.

Si applica a