WebFormViewEngine::FileExists Method

Visual Studio 2010

Determines whether a file at the specified location exists for 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
) override

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 exists; otherwise, false.

Community Additions

ADD
Show: