Share via


RazorComponentResult<TComponent> Class

Definition

An IResult that renders a Razor Component.

public class RazorComponentResult<TComponent> : Microsoft.AspNetCore.Http.HttpResults.RazorComponentResult where TComponent : IComponent
type RazorComponentResult<'Component (requires 'Component :> IComponent)> = class
    inherit RazorComponentResult
Public Class RazorComponentResult(Of TComponent)
Inherits RazorComponentResult

Type Parameters

TComponent
Inheritance
RazorComponentResult<TComponent>

Constructors

RazorComponentResult<TComponent>()

Constructs an instance of RazorComponentResult.

RazorComponentResult<TComponent>(IReadOnlyDictionary<String,Object>)

Constructs an instance of RazorComponentResult.

RazorComponentResult<TComponent>(Object)

Constructs an instance of RazorComponentResult.

Properties

ComponentType

Gets the component type.

(Inherited from RazorComponentResult)
ContentType

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

(Inherited from RazorComponentResult)
Parameters

Gets the parameters for the component.

(Inherited from RazorComponentResult)
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.

(Inherited from RazorComponentResult)
StatusCode

Gets or sets the HTTP status code.

(Inherited from RazorComponentResult)

Methods

ExecuteAsync(HttpContext)

Processes this result in the given httpContext.

(Inherited from RazorComponentResult)

Applies to