RazorComponentResult 类

定义

呈现 IResult Razor 组件的 。

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
继承
RazorComponentResult
派生
实现

构造函数

RazorComponentResult(Type)

构造 的 RazorComponentResult实例。

RazorComponentResult(Type, IReadOnlyDictionary<String,Object>)

构造 的 RazorComponentResult实例。

RazorComponentResult(Type, Object)

构造 的 RazorComponentResult实例。

属性

ComponentType

获取组件类型。

ContentType

获取或设置响应的 Content-Type 标头。

Parameters

获取组件的参数。

PreventStreamingRendering

获取或设置一个标志,以指示是否应阻止流呈现。 如果为 true,则呈现器将等待组件层次结构完成异步任务(如加载),然后再提供 HTML 响应。 如果为 false,则流式呈现将由正在呈现的组件决定。

默认值为 false。

StatusCode

获取或设置 HTTP 状态代码。

方法

ExecuteAsync(HttpContext)

在给定 httpContext的 中处理此结果。

适用于