System.Web.Hosting.VirtualPathProvider.FileExists Method

Gets a value that indicates whether a file exists in the virtual file system.

Syntax

public virtual bool FileExists (string virtualPath)

Parameters

virtualPath
The path to the virtual file.

Returns

true if the file exists in the virtual file system; otherwise, false.

Remarks

Override the VirtualPathProvider.FileExists(string) method to indicate to the compilation system that the resource represented by virtualPath exists in the virtual file system provided by this System.Web.Hosting.VirtualPathProvider instance.

Requirements

Namespace: System.Web.Hosting
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0