共用方式為


CachedDataAnnotationsModelMetadata.ComputeHideSurroundingHtml 方法

定義

取得值,這個值表示是否應該使用相關聯的 HTML 元素轉譯模型物件。取得值,這個值表示是否應該使用相關聯的 HTML 元素轉譯模型物件。如果快取值,則會傳回現金值;否則會從模型中繼資料擷取值,並儲存在快取中。

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

傳回

表示模型物件是否應該使用相關 HTML 項目來呈現的值。

適用於