Condividi tramite


IViewComponentHelper.InvokeAsync Metodo

Definizione

Overload

InvokeAsync(String, Object)

Richiama un componente di visualizzazione con l'oggetto specificato name.

InvokeAsync(Type, Object)

Richiama un componente di visualizzazione di tipo componentType.

InvokeAsync(String, Object)

Richiama un componente di visualizzazione con l'oggetto specificato 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)

Parametri

name
String

Nome del componente di visualizzazione.

arguments
Object

Oggetto Object con proprietà che rappresentano gli argomenti da passare al metodo componente di visualizzazione richiamato. In alternativa, un'istanza IDictionary<TKey,TValue> contenente gli argomenti di chiamata.

Restituisce

Oggetto Task che al completamento restituisce il rendering di IHtmlContent.

Si applica a

InvokeAsync(Type, Object)

Richiama un componente di visualizzazione di tipo 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)

Parametri

componentType
Type

Componente Typedi visualizzazione .

arguments
Object

Oggetto Object con proprietà che rappresentano gli argomenti da passare al metodo componente di visualizzazione richiamato. In alternativa, un'istanza IDictionary<TKey,TValue> contenente gli argomenti di chiamata.

Restituisce

Oggetto Task che al completamento restituisce il rendering di IHtmlContent.

Si applica a