summaryM:DotNetNuke.Web.Mvc.Framework.ViewEngineCollectionExt.FindView(System.Web.Mvc.ViewEngineCollection,System.Web.Mvc.ControllerContext,System.String,System.String,System.Boolean)

Namespace: DotNetNuke.Web.Mvc.Framework
Assembly: DotNetNuke.Web.Mvc (in DotNetNuke.Web.Mvc.dll)

Syntax

C#
public static ViewEngineResult FindView(
	this ViewEngineCollection viewEngineCollection,
	ControllerContext controllerContext,
	string viewName,
	string masterName,
	bool useCache
)
Visual Basic
<ExtensionAttribute> 
Public Shared Function FindView ( 
	viewEngineCollection As ViewEngineCollection,
	controllerContext As ControllerContext,
	viewName As String,
	masterName As String,
	useCache As Boolean
) As ViewEngineResult

Parameters

viewEngineCollection
Type: ViewEngineCollection
paramviewEngineCollectionM:DotNetNuke.Web.Mvc.Framework.ViewEngineCollectionExt.FindView(System.Web.Mvc.ViewEngineCollection,System.Web.Mvc.ControllerContext,System.String,System.String,System.Boolean)
controllerContext
Type: ControllerContext
paramcontrollerContextM:DotNetNuke.Web.Mvc.Framework.ViewEngineCollectionExt.FindView(System.Web.Mvc.ViewEngineCollection,System.Web.Mvc.ControllerContext,System.String,System.String,System.Boolean)
viewName
Type: System..::..String
paramviewNameM:DotNetNuke.Web.Mvc.Framework.ViewEngineCollectionExt.FindView(System.Web.Mvc.ViewEngineCollection,System.Web.Mvc.ControllerContext,System.String,System.String,System.Boolean)
masterName
Type: System..::..String
parammasterNameM:DotNetNuke.Web.Mvc.Framework.ViewEngineCollectionExt.FindView(System.Web.Mvc.ViewEngineCollection,System.Web.Mvc.ControllerContext,System.String,System.String,System.Boolean)
useCache
Type: System..::..Boolean
paramuseCacheM:DotNetNuke.Web.Mvc.Framework.ViewEngineCollectionExt.FindView(System.Web.Mvc.ViewEngineCollection,System.Web.Mvc.ControllerContext,System.String,System.String,System.Boolean)

Return Value

returnsM:DotNetNuke.Web.Mvc.Framework.ViewEngineCollectionExt.FindView(System.Web.Mvc.ViewEngineCollection,System.Web.Mvc.ControllerContext,System.String,System.String,System.Boolean)

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ViewEngineCollection. When you use instance method syntax to call this method, omit the first parameter. For more information, see [b8020aae-374d-46a9-bcb7-8cc2390b93b6] or [175ce3ff-9bbf-4e64-8421-faeb81a0bb51].

See Also