ViewExecutor Class¶
Summary¶
Utility type for rendering a [Microsoft.AspNet.Mvc.Rendering.IView](Microsoft.AspNet.Mvc.Rendering.IView.yml) to the response.
Inheritance Hierarchy¶
System.Object
Microsoft.AspNet.Mvc.ViewExecutor
Methods¶
-
ExecuteAsync
(Microsoft.AspNet.Mvc.Rendering.IView, Microsoft.AspNet.Mvc.ActionContext, Microsoft.AspNet.Mvc.ViewDataDictionary, Microsoft.AspNet.Mvc.ITempDataDictionary, Microsoft.AspNet.Mvc.Rendering.HtmlHelperOptions, MediaTypeHeaderValue)¶ Asynchronously renders the specified <paramref name=”view” /> to the response body.
Arguments: - view (Microsoft.AspNet.Mvc.Rendering.IView) – The [Microsoft.AspNet.Mvc.Rendering.IView](Microsoft.AspNet.Mvc.Rendering.IView.yml) to render.
- actionContext (Microsoft.AspNet.Mvc.ActionContext) – The [Microsoft.AspNet.Mvc.ActionContext]() for the current executing action.
- viewData (Microsoft.AspNet.Mvc.ViewDataDictionary) – The [Microsoft.AspNet.Mvc.ViewDataDictionary](Microsoft.AspNet.Mvc.ViewDataDictionary.yml) for the view being rendered.
- tempData (Microsoft.AspNet.Mvc.ITempDataDictionary) – The [Microsoft.AspNet.Mvc.ITempDataDictionary]() for the view being rendered.
- htmlHelperOptions (Microsoft.AspNet.Mvc.Rendering.HtmlHelperOptions) –
- contentType (MediaTypeHeaderValue) –
Return type: System.Threading.Tasks.Task
Returns: A [System.Threading.Tasks.Task]() that represents the asynchronous rendering.
public static Task ExecuteAsync(IView view, ActionContext actionContext, ViewDataDictionary viewData, ITempDataDictionary tempData, HtmlHelperOptions htmlHelperOptions, MediaTypeHeaderValue contentType)
-