Class ModuleDelegatingViewEngine
A View Engine that will delegate to whatever ViewEngine(s) the module application defines.
Inheritance
System.Object
ModuleDelegatingViewEngine
Namespace: DotNetNuke.Web.Mvc.Framework
Assembly: DotNetNuke.Web.Mvc.dll
Syntax
public class ModuleDelegatingViewEngine : IViewEngine
Methods
| Improve this Doc View SourceFindPartialView(ControllerContext, String, Boolean)
Finds the specified partial view by using the specified controller context.
Declaration
public ViewEngineResult FindPartialView(ControllerContext controllerContext, string partialViewName, bool useCache)
Parameters
| Type | Name | Description |
|---|---|---|
| ControllerContext | controllerContext | The controller context. |
| System.String | partialViewName | The name of the partial view. |
| System.Boolean | useCache | true to specify that the view engine returns the cached view, if a cached view exists; otherwise, false. |
Returns
| Type | Description |
|---|---|
| ViewEngineResult | The partial view. |
FindView(ControllerContext, String, String, Boolean)
Finds the specified view by using the specified controller context.
Declaration
public ViewEngineResult FindView(ControllerContext controllerContext, string viewName, string masterName, bool useCache)
Parameters
| Type | Name | Description |
|---|---|---|
| ControllerContext | controllerContext | The controller context. |
| System.String | viewName | The name of the view. |
| System.String | masterName | The name of the master. |
| System.Boolean | useCache | true to specify that the view engine returns the cached view, if a cached view exists; otherwise, false. |
Returns
| Type | Description |
|---|---|
| ViewEngineResult | The page view. |
ReleaseView(ControllerContext, IView)
Releases the specified view by using the specified controller context.
Declaration
public void ReleaseView(ControllerContext controllerContext, IView view)
Parameters
| Type | Name | Description |
|---|---|---|
| ControllerContext | controllerContext | The controller context. |
| IView | view | The view. |