CachedDataAnnotationsMetadataAttributes.ReadOnly 属性

定义

指示数据字段是否为只读。

public System.ComponentModel.ReadOnlyAttribute ReadOnly { get; protected set; }
member this.ReadOnly : System.ComponentModel.ReadOnlyAttribute with get, set
Public Property ReadOnly As ReadOnlyAttribute

属性值

如果字段为只读,则为 true;否则为 false。

适用于