共用方式為


PhysicalFileResultExecutor.ExecuteAsync 方法

定義

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

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

參數

context
ActionContext

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

result
PhysicalFileResult

要執行的動作結果。

傳回

Task 表示非同步作業。

實作

適用於