语言

VariableClass.ReadOnly 属性

定义

获得或设置一个值,指示变量类是否只读且不能修改其值。

public:
 virtual property bool ReadOnly { bool get(); void set(bool value); };
public virtual bool ReadOnly { get; set; }
member this.ReadOnly : bool with get, set
Public Overridable Property ReadOnly As Boolean

属性值

如果变量类是只读的,则为真;否则,就是假的。

实现

适用于