ModelMetadata.IsReadOnly 属性

定义

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

public virtual bool IsReadOnly { get; set; }
member this.IsReadOnly : bool with get, set
Public Overridable Property IsReadOnly As Boolean

属性值

如果模型为只读,则为 true;否则为 false。

适用于