語言

IComponentPrerenderer 介面

定義

可將 Razor 元件預先呈現為 HTML 的服務。

public interface IComponentPrerenderer
type IComponentPrerenderer = interface
Public Interface IComponentPrerenderer

屬性

名稱 Description
Dispatcher

Dispatcher取得應該用於呼叫 的 PrerenderComponentAsync(HttpContext, Type, IComponentRenderMode, ParameterView) 。

方法

名稱 Description
PrerenderComponentAsync(HttpContext, Type, IComponentRenderMode, ParameterView)

將 Razor 元件預先呈現為 HTML。

PrerenderPersistedStateAsync(HttpContext, PersistedStateSerializationMode)

準備目前要求中可保存之任何元件狀態的序列化標記法。

適用於