IComponentPrerenderer.PrerenderPersistedStateAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
- serializationMode
- PersistedStateSerializationMode
Returns
A task that completes with the prerendered state content.