ViewResultExecutor.ExecuteAsync(ActionContext, ViewResult) 方法

定义

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

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

参数

context
ActionContext

ActionContext与当前请求关联的 。/>

result
ViewResult

要执行的操作结果。

返回

一个 Task ,它表示异步操作。

实现

适用于