ModelMetadata.ShowForDisplay 屬性

定義

取得或設定值,這個值表示是否應該以唯讀檢視來顯示屬性,例如清單和詳細資料檢視。

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

屬性值

如果模型應該顯示在唯讀檢視中,則為 true;否則為 false。

適用於