ViewComponentResult クラス

定義

IActionResultビュー コンポーネントを応答にレンダリングする 。

public ref class ViewComponentResult : Microsoft::AspNetCore::Mvc::ActionResult
public ref class ViewComponentResult : Microsoft::AspNetCore::Mvc::ActionResult, Microsoft::AspNetCore::Mvc::IActionResult, Microsoft::AspNetCore::Mvc::Infrastructure::IStatusCodeActionResult
public class ViewComponentResult : Microsoft.AspNetCore.Mvc.ActionResult
public class ViewComponentResult : Microsoft.AspNetCore.Mvc.ActionResult, Microsoft.AspNetCore.Mvc.IActionResult, Microsoft.AspNetCore.Mvc.Infrastructure.IStatusCodeActionResult
type ViewComponentResult = class
    inherit ActionResult
type ViewComponentResult = class
    inherit ActionResult
    interface IStatusCodeActionResult
    interface IActionResult
type ViewComponentResult = class
    inherit ActionResult
    interface IActionResult
    interface IStatusCodeActionResult
Public Class ViewComponentResult
Inherits ActionResult
Public Class ViewComponentResult
Inherits ActionResult
Implements IActionResult, IStatusCodeActionResult
継承
ViewComponentResult
実装

コンストラクター

ViewComponentResult()

IActionResultビュー コンポーネントを応答にレンダリングする 。

プロパティ

Arguments

ビュー コンポーネントに指定された引数を取得または設定します。

ContentType

応答の Content-Type ヘッダーを取得または設定します。

Model

ビュー データ モデルを取得します。

StatusCode

HTTP ステータス コードを取得または設定します。

TempData

この結果の を ITempDataDictionary 取得または設定します。

ViewComponentName

呼び出すビュー コンポーネントの名前を取得または設定します。 が非null値に設定されている場合ViewComponentTypeは無視されます。

ViewComponentType

呼び出すビュー コンポーネントの型を取得または設定します。

ViewData

この結果の を ViewDataDictionary 取得または設定します。

ViewEngine
古い.

このプロパティは使用されておらず、次のメジャー バージョンでは削除されます。

ビューの検索に使用する を IViewEngine 取得または設定します。

メソッド

ExecuteResult(ActionContext)

アクション メソッドの結果操作を同期的に実行します。 このメソッドは、アクション メソッドの結果を処理するために MVC によって呼び出されます。

(継承元 ActionResult)
ExecuteResultAsync(ActionContext)

アクション メソッドの結果操作を非同期的に実行します。 このメソッドは、アクション メソッドの結果を処理するために MVC によって呼び出されます。

適用対象