RazorComponentResult Class

Definition

An IResult that renders a Razor Component.

public class RazorComponentResult : Microsoft.AspNetCore.Http.IContentTypeHttpResult, Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IStatusCodeHttpResult
type RazorComponentResult = class
    interface IResult
    interface IStatusCodeHttpResult
    interface IContentTypeHttpResult
Public Class RazorComponentResult
Implements IContentTypeHttpResult, IResult, IStatusCodeHttpResult
Inheritance
RazorComponentResult
Derived
Implements

Constructors

RazorComponentResult(Type, IReadOnlyDictionary<String,Object>)

Constructs an instance of RazorComponentResult.

RazorComponentResult(Type, Object)

Constructs an instance of RazorComponentResult.

RazorComponentResult(Type)

Constructs an instance of RazorComponentResult.

Properties

ComponentType

Gets the component type.

ContentType

Gets or sets the Content-Type header for the response.

Parameters

Gets the parameters for the component.

PreventStreamingRendering

Gets or sets a flag to indicate whether streaming rendering should be prevented. If true, the renderer will wait for the component hierarchy to complete asynchronous tasks such as loading before supplying the HTML response. If false, streaming rendering will be determined by the components being rendered.

The default value is false.

StatusCode

Gets or sets the HTTP status code.

Methods

ExecuteAsync(HttpContext)

Processes this result in the given httpContext.

Applies to