RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
WebDisp.TLocateFileServiceFindFileEvent Type

TLocateFileServiceFindFileEvent is the type for event handlers that locates a file on disk in a WebSnap application.

Pascal
TLocateFileServiceFindFileEvent = procedure (ASender: TObject; AComponent: TComponent; const AFileName: string; var AFoundFile: string; var AHandled: Boolean) of object;
C++
(ASender: TObject; AComponent: TComponent; const AFileName: string; var AFoundFile: string; var AHandled: Boolean) ( TLocateFileServiceFindFileEvent)();

TLocateFileServiceFindFileEvent is the type for event handlers of a TLocateFileService component that return a fully-qualified file name to indicate where a specified file can be found. 

ASender is the TLocateFileService component that is asked to locate a file. 

AComponent is the component that uses or is otherwise associated with the file. For example, this can be a content producer component that uses a template file. 

AFileName is the name of the file to locate. This is the name that the WebSnap application uses to refer to the desired file. Typically, it is the name of the Web page that the file is used to produce. 

AFoundFile returns the fully-qualified file name where the requested file can be found. 

AHandled returns true if the event handler supplies a file name as the value of AFoundFile. 

 

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