PartialViewResultExecutor.ExecuteAsync 方法

定义

重载

ExecuteAsync(ActionContext, PartialViewResult)

通过修改来异步执行操作结果 HttpResponse

ExecuteAsync(ActionContext, IView, PartialViewResult)

IView以异步方式执行。

ExecuteAsync(ActionContext, PartialViewResult)

通过修改来异步执行操作结果 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

一个 Task 表示异步操作的。

实现

适用于

ExecuteAsync(ActionContext, IView, PartialViewResult)

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

Task完成查看执行时将完成的。

适用于