ViewExecutor Class

Summary

Utility type for rendering a [Microsoft.AspNet.Mvc.Rendering.IView](Microsoft.AspNet.Mvc.Rendering.IView.yml) to the response.

Syntax

public class ViewExecutor

GitHub

View on GitHub

class 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:
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)