PartialViewResultExecutor.ExecuteAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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 表示非同步作業。
實作
適用於
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與目前要求相關聯的 。
- viewResult
- PartialViewResult
傳回
, Task 會在檢視執行完成時完成。