Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Interface IFastDirectoryLookup

It is recommended that IDirectoryHandler classes implement this interface if a faster way of finding directories and files than enumerating is available.

Namespace: EPiServer.Web.Hosting.Versioning
Assembly: EPiServer.dll
Version: 7.19.2
Syntax
public interface IFastDirectoryLookup

Methods

GetFile(String)

Get a file contained in the current directory

Declaration
IFileHandler GetFile(string name)
Parameters
Type Name Description
System.String name

The name of the file

Returns
Type Description
IFileHandler

A IFileHandler or NULL if no file with the given name was found in this directory

GetSubDirectory(String)

Get a subdirectory contained in the current directory

Declaration
IDirectoryHandler GetSubDirectory(string name)
Parameters
Type Name Description
System.String name

The name of the directory

Returns
Type Description
IDirectoryHandler

A IDirectoryHandler or NULL if no subdirectory with the given name was found in this directory

Extension Methods