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"

適用対象