ViewComponent クラス

定義

ビュー コンポーネントの基本クラス。

public ref class ViewComponent abstract
[Microsoft.AspNetCore.Mvc.ViewComponent]
public abstract class ViewComponent
[<Microsoft.AspNetCore.Mvc.ViewComponent>]
type ViewComponent = class
Public MustInherit Class ViewComponent
継承
ViewComponent
属性

コンストラクター

ViewComponent()

ビュー コンポーネントの基本クラス。

プロパティ

HttpContext

HttpContext を取得します。

ModelState

ModelStateDictionary を取得します。

Request

HttpRequest を取得します。

RouteData

現在の要求に対する RouteData を取得します。

TempData

ITempDataDictionary を取得します。

Url

IUrlHelper を取得または設定します。

User

現在のユーザーの を IPrincipal 取得します。

UserClaimsPrincipal

現在のユーザーの を ClaimsPrincipal 取得します。

ViewBag

ビュー バッグを取得します。

ViewComponentContext

ViewComponentContext を取得または設定します。

ViewContext

ViewContext を取得します。

ViewData

ViewDataDictionary を取得します。

ViewEngine

ICompositeViewEngine を取得または設定します。

メソッド

Content(String)

HTML でエンコードされたテキストをレンダリングする結果を返します。

View()

という名前 "Default"の部分ビューをレンダリングする結果を返します。

View(String)

という名前 viewNameの部分ビューをレンダリングする結果を返します。

View<TModel>(String, TModel)

という名前 viewNameの部分ビューをレンダリングする結果を返します。

View<TModel>(TModel)

という名前 "Default"の部分ビューをレンダリングする結果を返します。

適用対象