 | HandlebarsViewEngineFindView Method |
Finds the specified view by using the specified controller context.
Namespace: HandlebarsDotNet.MvcAssembly: HandlebarsDotNet.Mvc (in HandlebarsDotNet.Mvc.dll) Version: 1.0.0-beta
Syntaxpublic virtual ViewEngineResult FindView(
ControllerContext controllerContext,
string viewName,
string masterName,
bool useCache
)
Public Overridable Function FindView (
controllerContext As ControllerContext,
viewName As String,
masterName As String,
useCache As Boolean
) As ViewEngineResult
public:
virtual ViewEngineResult^ FindView(
ControllerContext^ controllerContext,
String^ viewName,
String^ masterName,
bool useCache
)
abstract FindView :
controllerContext : ControllerContext *
viewName : string *
masterName : string *
useCache : bool -> ViewEngineResult
override FindView :
controllerContext : ControllerContext *
viewName : string *
masterName : string *
useCache : bool -> ViewEngineResult
Parameters
- controllerContext
- Type: ControllerContext
The controller context. - viewName
- Type: SystemString
The name of the view. - masterName
- Type: SystemString
The name of the master (layout). - useCache
- Type: SystemBoolean
to specify that the view engine returns the cached view, if a cached view exists; otherwise, .
Return Value
Type:
ViewEngineResultThe page view.
Implements
IViewEngine.FindView(ControllerContext, String, String, Boolean)
See Also