DefaultViewComponentHelper.InvokeAsync 方法

定義

多載

InvokeAsync(String, Object)

使用指定的 name 叫用檢視元件。

InvokeAsync(Type, Object)

叫用 類型的 componentType 檢視元件。

InvokeAsync(String, Object)

來源:
DefaultViewComponentHelper.cs
來源:
DefaultViewComponentHelper.cs

使用指定的 name 叫用檢視元件。

public:
 virtual 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>
override this.InvokeAsync : string * obj -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Html.IHtmlContent>
Public Function InvokeAsync (name As String, arguments As Object) As Task(Of IHtmlContent)

參數

name
String

檢視元件的名稱。

arguments
Object

Object 表示要傳遞至叫用的檢視元件方法的引數。 或者,包含 IDictionary<TKey,TValue> 調用引數的實例。

傳回

Task完成時傳回轉譯 IHtmlContent 的 。

實作

適用於

InvokeAsync(Type, Object)

來源:
DefaultViewComponentHelper.cs
來源:
DefaultViewComponentHelper.cs

叫用 類型的 componentType 檢視元件。

public:
 virtual 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>
override this.InvokeAsync : Type * obj -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Html.IHtmlContent>
Public Function InvokeAsync (componentType As Type, arguments As Object) As Task(Of IHtmlContent)

參數

componentType
Type

檢視元件 Type

arguments
Object

Object 表示要傳遞至叫用的檢視元件方法的引數。 或者,包含 IDictionary<TKey,TValue> 調用引數的實例。

傳回

Task完成時傳回轉譯 IHtmlContent 的 。

實作

適用於