IView Interface

Specifies the contract for a view.

Namespace
Microsoft.AspNetCore.Mvc.ViewEngines
Assemblies
  • Microsoft.AspNetCore.Mvc.ViewFeatures

Syntax

public interface IView
interface Microsoft.AspNetCore.Mvc.ViewEngines.IView

Properties

Microsoft.AspNetCore.Mvc.ViewEngines.IView.Path

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

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

Methods

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

Asynchronously renders the view using the specified <em>context</em>.

Arguments:context (Microsoft.AspNetCore.Mvc.Rendering.ViewContext) – The Microsoft.AspNetCore.Mvc.Rendering.ViewContext.
Return type:System.Threading.Tasks.Task
Returns:A System.Threading.Tasks.Task that on completion renders the view.
Task RenderAsync(ViewContext context)