共用方式為


FileStreamResultExecutor.ExecuteAsync(ActionContext, FileStreamResult) 方法

定義

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

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

參數

context
ActionContext

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

result
FileStreamResult

要執行的動作結果。

傳回

Task 表示非同步作業。

實作

適用於