MetadataAttribute.IsReadOnly 属性

定义

指定属性是否为只读。

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

属性值

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

属性

适用于