BuildManagerViewEngine.FileExists Method
Gets a value that indicates whether a file exists in the specified virtual file system (path).
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
'Declaration Protected Overrides Function FileExists ( _ controllerContext As ControllerContext, _ virtualPath As String _ ) As Boolean 'Usage Dim controllerContext As ControllerContext Dim virtualPath As String Dim returnValue As Boolean returnValue = Me.FileExists(controllerContext, _ virtualPath)
Parameters
- controllerContext
- Type: System.Web.Mvc.ControllerContext
The controller context.
- virtualPath
- Type: System.String
The virtual path.
Return Value
Type: System.Booleantrue if the file exists in the virtual file system; otherwise, false.
Show: