IViewComponentHelper.InvokeAsync Méthode

Définition

Surcharges

InvokeAsync(String, Object)

Appelle un composant d’affichage avec le spécifié name.

InvokeAsync(Type, Object)

Appelle un composant d’affichage de type componentType.

InvokeAsync(String, Object)

Appelle un composant d’affichage avec le spécifié name.

public:
 System::Threading::Tasks::Task<Microsoft::AspNetCore::Html::IHtmlContent ^> ^ InvokeAsync(System::String ^ name, System::Object ^ arguments);
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Html.IHtmlContent> InvokeAsync (string name, object arguments);
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Html.IHtmlContent> InvokeAsync (string name, object? arguments);
abstract member InvokeAsync : string * obj -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Html.IHtmlContent>
Public Function InvokeAsync (name As String, arguments As Object) As Task(Of IHtmlContent)

Paramètres

name
String

Nom du composant d’affichage.

arguments
Object

Object avec des propriétés représentant les arguments à passer à la méthode du composant d’affichage appelé. IDictionary<TKey,TValue> Une instance contenant les arguments d’appel.

Retours

Task qui, à l’achèvement, retourne le rendu IHtmlContent.

S’applique à

InvokeAsync(Type, Object)

Appelle un composant d’affichage de type componentType.

public:
 System::Threading::Tasks::Task<Microsoft::AspNetCore::Html::IHtmlContent ^> ^ InvokeAsync(Type ^ componentType, System::Object ^ arguments);
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Html.IHtmlContent> InvokeAsync (Type componentType, object arguments);
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Html.IHtmlContent> InvokeAsync (Type componentType, object? arguments);
abstract member InvokeAsync : Type * obj -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Html.IHtmlContent>
Public Function InvokeAsync (componentType As Type, arguments As Object) As Task(Of IHtmlContent)

Paramètres

componentType
Type

Composant d’affichage Type.

arguments
Object

Object avec des propriétés représentant les arguments à passer à la méthode du composant d’affichage appelé. IDictionary<TKey,TValue> Une instance contenant les arguments d’appel.

Retours

Task qui, à l’achèvement, retourne le rendu IHtmlContent.

S’applique à