IViewEngine Interface

Summary

Defines the contract for a view engine.

Syntax

public interface IViewEngine

GitHub

View on GitHub

interface Microsoft.AspNet.Mvc.ViewEngines.IViewEngine

Methods

FindPartialView(Microsoft.AspNet.Mvc.ActionContext, System.String)

Finds the specified partial view by using the specified action context.

Arguments:
  • context (Microsoft.AspNet.Mvc.ActionContext) – The action context.
  • partialViewName (System.String) – The name or full path to the view.
Return type:

Microsoft.AspNet.Mvc.ViewEngines.ViewEngineResult

Returns:

A result representing the result of locating the view.

ViewEngineResult FindPartialView(ActionContext context, string partialViewName)
FindView(Microsoft.AspNet.Mvc.ActionContext, System.String)

Finds the specified view by using the specified action context.

Arguments:
  • context (Microsoft.AspNet.Mvc.ActionContext) – The action context.
  • viewName (System.String) – The name or full path to the view.
Return type:

Microsoft.AspNet.Mvc.ViewEngines.ViewEngineResult

Returns:

A result representing the result of locating the view.

ViewEngineResult FindView(ActionContext context, string viewName)