IBindingList.AllowNew Property

Definition

取得值,指出您是否可以使用 AddNew() 將項目加入清單。Gets whether you can add items to the list using AddNew().

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

Property Value

Boolean

如果您可以使用 AddNew() 將項目加入清單,則為 true,否則為 falsetrue if you can add items to the list using AddNew(); otherwise, false.

Remarks

如果 IList.IsFixedSizeIList.IsReadOnly true,這個屬性會傳回 falseIf IList.IsFixedSize or IList.IsReadOnly is true, this property returns false.

Applies to