PageModel.ViewComponent メソッド

定義

オーバーロード

ViewComponent(Type, Object)

ViewComponentResultレンダリングするビュー コンポーネントの をType指定して を作成します。

ViewComponent(String)

レンダリングする ViewComponentResult ビュー コンポーネントの名前を指定して を作成します。

ViewComponent(Type)

ViewComponentResultレンダリングするビュー コンポーネントの をType指定して を作成します。

ViewComponent(String, Object)

レンダリングする ViewComponentResult ビュー コンポーネントの名前を指定して を作成します。

ViewComponent(Type, Object)

ViewComponentResultレンダリングするビュー コンポーネントの をType指定して を作成します。

public:
 virtual Microsoft::AspNetCore::Mvc::ViewComponentResult ^ ViewComponent(Type ^ componentType, System::Object ^ arguments);
public virtual Microsoft.AspNetCore.Mvc.ViewComponentResult ViewComponent (Type componentType, object arguments);
public virtual Microsoft.AspNetCore.Mvc.ViewComponentResult ViewComponent (Type componentType, object? arguments);
abstract member ViewComponent : Type * obj -> Microsoft.AspNetCore.Mvc.ViewComponentResult
override this.ViewComponent : Type * obj -> Microsoft.AspNetCore.Mvc.ViewComponentResult
Public Overridable Function ViewComponent (componentType As Type, arguments As Object) As ViewComponentResult

パラメーター

componentType
Type

ビュー コンポーネント Type

arguments
Object

Object呼び出されたビュー コンポーネント メソッドに渡される引数を表す プロパティを持つ 。 または、 IDictionary<TKey,TValue> 呼び出し引数を含むインスタンス。

戻り値

応答用に作成された ViewComponentResult オブジェクト。

適用対象

ViewComponent(String)

レンダリングする ViewComponentResult ビュー コンポーネントの名前を指定して を作成します。

public:
 virtual Microsoft::AspNetCore::Mvc::ViewComponentResult ^ ViewComponent(System::String ^ componentName);
public virtual Microsoft.AspNetCore.Mvc.ViewComponentResult ViewComponent (string componentName);
abstract member ViewComponent : string -> Microsoft.AspNetCore.Mvc.ViewComponentResult
override this.ViewComponent : string -> Microsoft.AspNetCore.Mvc.ViewComponentResult
Public Overridable Function ViewComponent (componentName As String) As ViewComponentResult

パラメーター

componentName
String

ビュー コンポーネント名。 ビュー コンポーネント ShortName または FullNameを指定できます。

戻り値

応答用に作成された ViewComponentResult オブジェクト。

適用対象

ViewComponent(Type)

ViewComponentResultレンダリングするビュー コンポーネントの をType指定して を作成します。

public:
 virtual Microsoft::AspNetCore::Mvc::ViewComponentResult ^ ViewComponent(Type ^ componentType);
public virtual Microsoft.AspNetCore.Mvc.ViewComponentResult ViewComponent (Type componentType);
abstract member ViewComponent : Type -> Microsoft.AspNetCore.Mvc.ViewComponentResult
override this.ViewComponent : Type -> Microsoft.AspNetCore.Mvc.ViewComponentResult
Public Overridable Function ViewComponent (componentType As Type) As ViewComponentResult

パラメーター

componentType
Type

ビュー コンポーネント Type

戻り値

応答用に作成された ViewComponentResult オブジェクト。

適用対象

ViewComponent(String, Object)

レンダリングする ViewComponentResult ビュー コンポーネントの名前を指定して を作成します。

public:
 virtual Microsoft::AspNetCore::Mvc::ViewComponentResult ^ ViewComponent(System::String ^ componentName, System::Object ^ arguments);
public virtual Microsoft.AspNetCore.Mvc.ViewComponentResult ViewComponent (string componentName, object arguments);
public virtual Microsoft.AspNetCore.Mvc.ViewComponentResult ViewComponent (string componentName, object? arguments);
abstract member ViewComponent : string * obj -> Microsoft.AspNetCore.Mvc.ViewComponentResult
override this.ViewComponent : string * obj -> Microsoft.AspNetCore.Mvc.ViewComponentResult
Public Overridable Function ViewComponent (componentName As String, arguments As Object) As ViewComponentResult

パラメーター

componentName
String

ビュー コンポーネント名。 ビュー コンポーネント ShortName または FullNameを指定できます。

arguments
Object

Object呼び出されたビュー コンポーネント メソッドに渡される引数を表す プロパティを持つ 。 または、 IDictionary<TKey,TValue> 呼び出し引数を含むインスタンス。

戻り値

応答用に作成された ViewComponentResult オブジェクト。

適用対象