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