VirtualPathProviderViewEngine.FileExists(ControllerContext, String) Method

Definition

Returns a value that indicates whether the file is in the specified path by using the specified controller context.

protected virtual bool FileExists (System.Web.Mvc.ControllerContext controllerContext, string virtualPath);
abstract member FileExists : System.Web.Mvc.ControllerContext * string -> bool
override this.FileExists : System.Web.Mvc.ControllerContext * string -> bool
Protected Overridable Function FileExists (controllerContext As ControllerContext, virtualPath As String) As Boolean

Parameters

controllerContext
ControllerContext

The controller context.

virtualPath
String

The virtual path.

Returns

true if the file is in the specified path; otherwise, false.

Applies to