IView Interface

Summary

Specifies the contract for a view.

Syntax

public interface IView

GitHub

View on GitHub

interface Microsoft.AspNet.Mvc.Rendering.IView

Properties

Path()

Gets the path of the view as resolved by the [Microsoft.AspNet.Mvc.Rendering.IViewEngine](Microsoft.AspNet.Mvc.Rendering.IViewEngine.yml).

Return type:System.String
string Path { get; }

Methods

RenderAsync(Microsoft.AspNet.Mvc.ViewContext)

Asynchronously renders the view using the specified <paramref name=”context” />.

Arguments:
Return type:

System.Threading.Tasks.Task

Returns:

A [System.Threading.Tasks.Task]() that on completion renders the view.

Task RenderAsync(ViewContext context)