BaseCollection.IsReadOnly BaseCollection.IsReadOnly BaseCollection.IsReadOnly BaseCollection.IsReadOnly Property

定义

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

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

属性值

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

注解

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

适用于