Compartir a través de


ViewComponentHelperExtensions.InvokeAsync Método

Definición

Sobrecargas

InvokeAsync(IViewComponentHelper, String)

Invoca un componente de vista con el especificado name.

InvokeAsync(IViewComponentHelper, Type)

Invoca un componente de vista de tipo componentType.

InvokeAsync<TComponent>(IViewComponentHelper)

Invoca un componente de vista de tipo TComponent.

InvokeAsync<TComponent>(IViewComponentHelper, Object)

Invoca un componente de vista de tipo TComponent.

InvokeAsync(IViewComponentHelper, String)

Source:
ViewComponentHelperExtensions.cs
Source:
ViewComponentHelperExtensions.cs
Source:
ViewComponentHelperExtensions.cs

Invoca un componente de vista con el especificado 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)

Parámetros

name
String

Nombre del componente de vista.

Devoluciones

que Task al finalizar devuelve el objeto representado IHtmlContent.

Se aplica a

InvokeAsync(IViewComponentHelper, Type)

Source:
ViewComponentHelperExtensions.cs
Source:
ViewComponentHelperExtensions.cs
Source:
ViewComponentHelperExtensions.cs

Invoca un componente de vista de tipo 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)

Parámetros

componentType
Type

Componente de vista Type.

Devoluciones

que Task al finalizar devuelve el objeto representado IHtmlContent.

Se aplica a

InvokeAsync<TComponent>(IViewComponentHelper)

Source:
ViewComponentHelperExtensions.cs
Source:
ViewComponentHelperExtensions.cs
Source:
ViewComponentHelperExtensions.cs

Invoca un componente de vista de tipo 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)

Parámetros de tipo

TComponent

del Type componente de vista.

Parámetros

Devoluciones

que Task al finalizar devuelve el objeto representado IHtmlContent.

Se aplica a

InvokeAsync<TComponent>(IViewComponentHelper, Object)

Source:
ViewComponentHelperExtensions.cs
Source:
ViewComponentHelperExtensions.cs
Source:
ViewComponentHelperExtensions.cs

Invoca un componente de vista de tipo 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)

Parámetros de tipo

TComponent

del Type componente de vista.

Parámetros

arguments
Object

Argumentos que se van a pasar al método de componente de vista invocado.

Devoluciones

que Task al finalizar devuelve el objeto representado IHtmlContent.

Se aplica a