ISpaPrerenderer Interface

Definition

Caution

Use Microsoft.AspNetCore.SpaServices.Extensions

Represents a service that can perform server-side prerendering for JavaScript-based Single Page Applications. This is an alternative to using the 'asp-prerender-module' tag helper.

C#
public interface ISpaPrerenderer
C#
[System.Obsolete("Use Microsoft.AspNetCore.SpaServices.Extensions")]
public interface ISpaPrerenderer
Attributes

Methods

RenderToString(String, String, Object, Int32)

Invokes JavaScript code to perform server-side prerendering for a Single-Page Application. This is an alternative to using the 'asp-prerender-module' tag helper.

Applies to

Product Versies (Verouderd)
ASP.NET Core 2.0, 2.1, 2.2 (3.0, 3.1)