IView Interface

Summary

Specifies the contract for a view.

Syntax

public interface IView

GitHub

View on GitHub

interface Microsoft.AspNet.Mvc.ViewEngines.IView

Methods

RenderAsync(Microsoft.AspNet.Mvc.Rendering.ViewContext)

Asynchronously renders the view using the specified context.

Arguments:
  • context (Microsoft.AspNet.Mvc.Rendering.ViewContext) – The .
Return type:

System.Threading.Tasks.Task

Returns:

A <see cref=”T:System.Threading.Tasks.Task” /> that on completion renders the view.

Task RenderAsync(ViewContext context)

Properties

Path()

Gets the path of the view as resolved by the Microsoft.AspNet.Mvc.ViewEngines.IViewEngine.

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