IComponentPrerenderer.PrerenderPersistedStateAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
准备当前请求中可持久保存的任何组件状态的序列化表示形式。
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
- serializationMode
- PersistedStateSerializationMode
返回
使用预呈现状态内容完成的任务。