次の方法で共有


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の で処理します。

適用対象