MetadataAttribute.IsReadOnly 属性

定义

获取或设置一个值,该值指示属性是否为只读属性。

public:
 property bool IsReadOnly { bool get(); void set(bool value); };
[System.Runtime.Serialization.DataMember]
public bool IsReadOnly { get; set; }
[<System.Runtime.Serialization.DataMember>]
member this.IsReadOnly : bool with get, set
Public Property IsReadOnly As Boolean

属性值

true 如果该属性为只读,则为 ;否则为 false

属性

适用于