Share via


IComponentPrerenderer.PrerenderPersistedStateAsync Method

Definition

Prepares a serialized representation of any component state that is persistible within the current request.

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)

Parameters

httpContext
HttpContext

The HttpContext.

Returns

A task that completes with the prerendered state content.

Applies to