Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
FileExists Method

VirtualPathProviderViewEngine.FileExists Method (ControllerContext, String)

 

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)

protected virtual bool FileExists(
	ControllerContext controllerContext,
	string virtualPath
)

Parameters

controllerContext
Type: System.Web.Mvc.ControllerContext

The controller context.

virtualPath
Type: System.String

The virtual path.

Return Value

Type: System.Boolean

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

Return to top
Show:
© 2015 Microsoft