Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
RenderMode Enum
Definition
- Namespace:
- Microsoft.AspNetCore.Mvc.Rendering
- Assembly:
- Microsoft.AspNetCore.Mvc.ViewFeatures.dll
- Package:
- Microsoft.AspNetCore.App.Ref v10.0.0
- Package:
- Microsoft.AspNetCore.App.Ref v11.0.0-preview.4.26230.115
- Package:
- Microsoft.AspNetCore.App.Ref v3.0.1
- Package:
- Microsoft.AspNetCore.App.Ref v3.1.10
- Package:
- Microsoft.AspNetCore.App.Ref v5.0.0
- Package:
- Microsoft.AspNetCore.App.Ref v6.0.36
- Package:
- Microsoft.AspNetCore.App.Ref v7.0.5
- Package:
- Microsoft.AspNetCore.App.Ref v8.0.19
- Package:
- Microsoft.AspNetCore.App.Ref v9.0.8
- Source:
- RenderMode.cs
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.
Describes the render mode of the component.
public enum class RenderMode
public enum RenderMode
type RenderMode =
Public Enum RenderMode
- Inheritance
-
RenderMode
Fields
| Name | Value | Description |
|---|---|---|
| Static | 1 | Renders the component into static HTML. |
| Server | 2 | Renders a marker for a Blazor server-side application. This doesn't include any output from the component. When the user-agent starts, it uses this marker to bootstrap a blazor application. |
| ServerPrerendered | 3 | Renders the component into static HTML and includes a marker for a Blazor server-side application. When the user-agent starts, it uses this marker to bootstrap a blazor application. |
| WebAssembly | 4 | Renders a marker for a Blazor webassembly application. This doesn't include any output from the component. When the user-agent starts, it uses this marker to bootstrap a blazor client-side application. |
| WebAssemblyPrerendered | 5 | Renders the component into static HTML and includes a marker for a Blazor webassembly application. When the user-agent starts, it uses this marker to bootstrap a blazor client-side application. |
Remarks
The rendering mode determines how the component gets rendered on the page. It configures whether the component is prerendered into the page or not and whether it simply renders static HTML on the page or if it includes the necessary information to bootstrap a Blazor application from the user agent.
Applies to
Feedback
Was this page helpful?
