Interface IViewEngine
Defines the methods that are required for a view engine.
public interface IViewEngine
Methods
FindPartialView(ControllerContext, string, bool)
Finds the specified partial view by using the specified controller context.
ViewEngineResult FindPartialView(ControllerContext controllerContext, string partialViewName, bool useCache)
Parameters
controllerContextControllerContextThe controller context.
partialViewNamestringThe name of the partial view.
useCachebooltrue to specify that the view engine returns the cached view, if a cached view exists; otherwise, false.
Returns
- ViewEngineResult
The partial view.
FindView(ControllerContext, string, string, bool)
Finds the specified view by using the specified controller context.
ViewEngineResult FindView(ControllerContext controllerContext, string viewName, string masterName, bool useCache)
Parameters
controllerContextControllerContextThe controller context.
viewNamestringThe name of the view.
masterNamestringThe name of the master.
useCachebooltrue to specify that the view engine returns the cached view, if a cached view exists; otherwise, false.
Returns
- ViewEngineResult
The page view.
ReleaseView(ControllerContext, IView)
Releases the specified view by using the specified controller context.
void ReleaseView(ControllerContext controllerContext, IView view)
Parameters
controllerContextControllerContextThe controller context.
viewIViewThe view.