Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

ISpaPrerenderer Interface

Definition

Namespace:
Microsoft.AspNetCore.SpaServices.Prerendering
Assembly:
Microsoft.AspNetCore.SpaServices.dll
Package:
Microsoft.AspNetCore.SpaServices v2.0.0
Package:
Microsoft.AspNetCore.SpaServices v2.1.0
Package:
Microsoft.AspNetCore.SpaServices v2.2.0
Package:
Microsoft.AspNetCore.SpaServices v3.0.3
Package:
Microsoft.AspNetCore.SpaServices v3.1.18

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.

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.

public interface class ISpaPrerenderer
public interface ISpaPrerenderer
[System.Obsolete("Use Microsoft.AspNetCore.SpaServices.Extensions")]
public interface ISpaPrerenderer
type ISpaPrerenderer = interface
[<System.Obsolete("Use Microsoft.AspNetCore.SpaServices.Extensions")>]
type ISpaPrerenderer = interface
Public Interface ISpaPrerenderer
Attributes

Methods

Name Description
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


Feedback

Was this page helpful?