共用方式為


CachedModelMetadata<TPrototypeCache>.ComputeHideSurroundingHtml 方法

定義

這個方法受到保護,因此無法直接呼叫。 這個方法的設計是要在衍生類別中覆寫,例如 CachedDataAnnotationsModelMetadata 。取得或設定快取值,這個值表示是否應該使用相關聯的 HTML 專案來轉譯模型物件。

protected virtual bool ComputeHideSurroundingHtml ();
abstract member ComputeHideSurroundingHtml : unit -> bool
override this.ComputeHideSurroundingHtml : unit -> bool
Protected Overridable Function ComputeHideSurroundingHtml () As Boolean

傳回

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

適用於