ModelMetadata.IsReadOnly 屬性

定義

取得或設定一個值,指定模型是否可更新。

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

屬性值

true 若模型為唯讀;否則, false 預設為 false

適用於