ViewComponentHelperExtensions.InvokeAsync Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
InvokeAsync(IViewComponentHelper, String) |
Invoca un componente de vista con el especificado |
InvokeAsync(IViewComponentHelper, Type) |
Invoca un componente de vista de tipo |
InvokeAsync<TComponent>(IViewComponentHelper) |
Invoca un componente de vista de tipo |
InvokeAsync<TComponent>(IViewComponentHelper, Object) |
Invoca un componente de vista de tipo |
InvokeAsync(IViewComponentHelper, String)
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)
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
Devoluciones
que Task al finalizar devuelve el objeto representado IHtmlContent.
Se aplica a
InvokeAsync<TComponent>(IViewComponentHelper)
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)
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.