共用方式為


PartialViewResultExecutor.ExecuteAsync 方法

定義

多載

ExecuteAsync(ActionContext, PartialViewResult)

藉由修改 HttpResponse ,以非同步方式執行動作結果。

ExecuteAsync(ActionContext, IView, PartialViewResult)

IView以非同步方式執行 。

ExecuteAsync(ActionContext, PartialViewResult)

來源:
PartialViewResultExecutor.cs
來源:
PartialViewResultExecutor.cs
來源:
PartialViewResultExecutor.cs

藉由修改 HttpResponse ,以非同步方式執行動作結果。

public:
 virtual System::Threading::Tasks::Task ^ ExecuteAsync(Microsoft::AspNetCore::Mvc::ActionContext ^ context, Microsoft::AspNetCore::Mvc::PartialViewResult ^ result);
public virtual System.Threading.Tasks.Task ExecuteAsync (Microsoft.AspNetCore.Mvc.ActionContext context, Microsoft.AspNetCore.Mvc.PartialViewResult result);
override this.ExecuteAsync : Microsoft.AspNetCore.Mvc.ActionContext * Microsoft.AspNetCore.Mvc.PartialViewResult -> System.Threading.Tasks.Task
Public Overridable Function ExecuteAsync (context As ActionContext, result As PartialViewResult) As Task

參數

context
ActionContext

ActionContext與目前要求相關聯的 。/>

result
PartialViewResult

要執行的動作結果。

傳回

Task 表示非同步作業。

實作

適用於

ExecuteAsync(ActionContext, IView, PartialViewResult)

來源:
PartialViewResultExecutor.cs
來源:
PartialViewResultExecutor.cs
來源:
PartialViewResultExecutor.cs

IView以非同步方式執行 。

public:
 virtual System::Threading::Tasks::Task ^ ExecuteAsync(Microsoft::AspNetCore::Mvc::ActionContext ^ actionContext, Microsoft::AspNetCore::Mvc::ViewEngines::IView ^ view, Microsoft::AspNetCore::Mvc::PartialViewResult ^ viewResult);
public virtual System.Threading.Tasks.Task ExecuteAsync (Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.ViewEngines.IView view, Microsoft.AspNetCore.Mvc.PartialViewResult viewResult);
override this.ExecuteAsync : Microsoft.AspNetCore.Mvc.ActionContext * Microsoft.AspNetCore.Mvc.ViewEngines.IView * Microsoft.AspNetCore.Mvc.PartialViewResult -> System.Threading.Tasks.Task
Public Overridable Function ExecuteAsync (actionContext As ActionContext, view As IView, viewResult As PartialViewResult) As Task

參數

actionContext
ActionContext

ActionContext與目前要求相關聯的 。

view
IView

IView

傳回

Task 會在檢視執行完成時完成。

適用於