ViewComponentHelperExtensions.InvokeAsync メソッド

定義

オーバーロード

InvokeAsync(IViewComponentHelper, String)

指定した を使用してビュー コンポーネントを呼び出します name

InvokeAsync(IViewComponentHelper, Type)

componentTypeのビュー コンポーネントを呼び出します。

InvokeAsync<TComponent>(IViewComponentHelper)

TComponentのビュー コンポーネントを呼び出します。

InvokeAsync<TComponent>(IViewComponentHelper, Object)

TComponentのビュー コンポーネントを呼び出します。

InvokeAsync(IViewComponentHelper, String)

指定した を使用してビュー コンポーネントを呼び出します name

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task<Microsoft::AspNetCore::Html::IHtmlContent ^> ^ InvokeAsync(Microsoft::AspNetCore::Mvc::IViewComponentHelper ^ helper, System::String ^ name);
public static System.Threading.Tasks.Task<Microsoft.AspNetCore.Html.IHtmlContent> InvokeAsync (this Microsoft.AspNetCore.Mvc.IViewComponentHelper helper, string name);
static member InvokeAsync : Microsoft.AspNetCore.Mvc.IViewComponentHelper * string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Html.IHtmlContent>
<Extension()>
Public Function InvokeAsync (helper As IViewComponentHelper, name As String) As Task(Of IHtmlContent)

パラメーター

name
String

ビュー コンポーネントの名前。

戻り値

Task完了時にレンダリングされた IHtmlContentを返す 。

適用対象

InvokeAsync(IViewComponentHelper, Type)

componentTypeのビュー コンポーネントを呼び出します。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task<Microsoft::AspNetCore::Html::IHtmlContent ^> ^ InvokeAsync(Microsoft::AspNetCore::Mvc::IViewComponentHelper ^ helper, Type ^ componentType);
public static System.Threading.Tasks.Task<Microsoft.AspNetCore.Html.IHtmlContent> InvokeAsync (this Microsoft.AspNetCore.Mvc.IViewComponentHelper helper, Type componentType);
static member InvokeAsync : Microsoft.AspNetCore.Mvc.IViewComponentHelper * Type -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Html.IHtmlContent>
<Extension()>
Public Function InvokeAsync (helper As IViewComponentHelper, componentType As Type) As Task(Of IHtmlContent)

パラメーター

componentType
Type

ビュー コンポーネント Type

戻り値

Task完了時にレンダリングされた IHtmlContentを返す 。

適用対象

InvokeAsync<TComponent>(IViewComponentHelper)

TComponentのビュー コンポーネントを呼び出します。

public:
generic <typename TComponent>
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task<Microsoft::AspNetCore::Html::IHtmlContent ^> ^ InvokeAsync(Microsoft::AspNetCore::Mvc::IViewComponentHelper ^ helper);
public static System.Threading.Tasks.Task<Microsoft.AspNetCore.Html.IHtmlContent> InvokeAsync<TComponent> (this Microsoft.AspNetCore.Mvc.IViewComponentHelper helper);
static member InvokeAsync : Microsoft.AspNetCore.Mvc.IViewComponentHelper -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Html.IHtmlContent>
<Extension()>
Public Function InvokeAsync(Of TComponent) (helper As IViewComponentHelper) As Task(Of IHtmlContent)

型パラメーター

TComponent

Typeビュー コンポーネントの 。

パラメーター

戻り値

Task完了時にレンダリングされた IHtmlContentを返す 。

適用対象

InvokeAsync<TComponent>(IViewComponentHelper, Object)

TComponentのビュー コンポーネントを呼び出します。

public:
generic <typename TComponent>
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task<Microsoft::AspNetCore::Html::IHtmlContent ^> ^ InvokeAsync(Microsoft::AspNetCore::Mvc::IViewComponentHelper ^ helper, System::Object ^ arguments);
public static System.Threading.Tasks.Task<Microsoft.AspNetCore.Html.IHtmlContent> InvokeAsync<TComponent> (this Microsoft.AspNetCore.Mvc.IViewComponentHelper helper, object arguments);
public static System.Threading.Tasks.Task<Microsoft.AspNetCore.Html.IHtmlContent> InvokeAsync<TComponent> (this Microsoft.AspNetCore.Mvc.IViewComponentHelper helper, object? arguments);
static member InvokeAsync : Microsoft.AspNetCore.Mvc.IViewComponentHelper * obj -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Html.IHtmlContent>
<Extension()>
Public Function InvokeAsync(Of TComponent) (helper As IViewComponentHelper, arguments As Object) As Task(Of IHtmlContent)

型パラメーター

TComponent

Typeビュー コンポーネントの 。

パラメーター

arguments
Object

呼び出されたビュー コンポーネント メソッドに渡される引数。

戻り値

Task完了時にレンダリングされた IHtmlContentを返す 。

適用対象