IBindingList.AllowRemove Özellik

Tanım

veya Remove(Object)kullanarak RemoveAt(Int32) listeden öğe kaldırıp kaldıramayacağınızı alır.

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

Özellik Değeri

true listeden öğe kaldırabiliyorsanız; aksi takdirde , false.

Açıklamalar

veya IList.IsFixedSizeIList.IsReadOnly ise true, bu özellik döndürür false.

Note

döndürürse AllowRemovefalseIList.Remove ve IList.RemoveAt bir NotSupportedExceptionoluşturur.

Şunlara uygulanır