RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomLocateFileService Class

TCustomLocateFileService uses event handlers to control access to templates and server-side script include files at runtime.

Pascal
TCustomLocateFileService = class(TComponent, ILocateFileService, IFindIncludeFile);
C++
class TCustomLocateFileService : public TComponent, public ILocateFileService, public IFindIncludeFile;

TCustomLocateFileService is the base class for components that control access to files in a WebSnap application. TCustomLocateFileService defines events that indicate where to locate a requested file or that supply a stream object from which to read the contents of a file. By using a TCustomLocateFileService descendant, a WebSnap application can adjust to differences in the way files are deployed or even to use different files, depending on the current Web context. 

Do not create instances of TCustomLocateFileService. All of the events it introduces are protected, and so unavailable to your application. Instead, use a TCustomLocateFileService descendant, such as TLocateFileService, which publishes those events. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!