Freigeben über


VirtualPathProviderViewEngine.FileExists Method

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

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Syntax

'Declaration
Protected Overridable Function FileExists ( _
    controllerContext As ControllerContext, _
    virtualPath As String _
) As Boolean
protected virtual bool FileExists(
    ControllerContext controllerContext,
    string virtualPath
)
protected:
virtual bool FileExists(
    ControllerContext^ controllerContext, 
    String^ virtualPath
)

Parameters

Return Value

Type: System.Boolean
true if the file is in the specified path; otherwise, false.

See Also

Reference

VirtualPathProviderViewEngine Class

System.Web.Mvc Namespace