IComponentPrerenderer.PrerenderPersistedStateAsync 方法

定义

准备当前请求中可持久保存的任何组件状态的序列化表示形式。

public System.Threading.Tasks.ValueTask<Microsoft.AspNetCore.Html.IHtmlContent> PrerenderPersistedStateAsync (Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Components.PersistedStateSerializationMode serializationMode);
abstract member PrerenderPersistedStateAsync : Microsoft.AspNetCore.Http.HttpContext * Microsoft.AspNetCore.Components.PersistedStateSerializationMode -> System.Threading.Tasks.ValueTask<Microsoft.AspNetCore.Html.IHtmlContent>
Public Function PrerenderPersistedStateAsync (httpContext As HttpContext, serializationMode As PersistedStateSerializationMode) As ValueTask(Of IHtmlContent)

参数

httpContext
HttpContext

HttpContext

返回

使用预呈现状态内容完成的任务。

适用于