BaseCollection.IsReadOnly 属性

定义

获取一个值,该值指示集合是否为只读。Gets a value indicating whether the collection is read-only.

public:
 property bool IsReadOnly { bool get(); };
[System.ComponentModel.Browsable(false)]
public bool IsReadOnly { get; }
[<System.ComponentModel.Browsable(false)>]
member this.IsReadOnly : bool
Public ReadOnly Property IsReadOnly As Boolean

属性值

Boolean

此属性始终为 falseThis property is always false.

属性

注解

派生自类的集合 BaseCollection 始终是可写的,这就是此属性始终返回的原因 falseThe collections that derive from the BaseCollection class are always writable, which is why this property always returns false.

适用于