Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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)
protected virtual bool FileExists(
	ControllerContext controllerContext,
	string virtualPath


Type: System.Web.Mvc.ControllerContext
The controller context.
Type: System.String
The virtual path.

Return Value

Type: System.Boolean
true if the file is in the specified path; otherwise, false.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.