CachedDataAnnotationsModelMetadata.ComputeShowForDisplay 方法

定義

取得值,指出屬性是否應該顯示在唯讀檢視中,例如清單和詳細資料檢視。如果快取值,則會傳回現金值;否則會從模型中繼資料擷取值,並儲存在快取中。

protected override bool ComputeShowForDisplay ();
override this.ComputeShowForDisplay : unit -> bool
Protected Overrides Function ComputeShowForDisplay () As Boolean

傳回

表示是否應該以唯讀檢視 (例如清單和詳細資料檢視) 來顯示屬性的值。

適用於