|
<< Click to Display Table of Contents >> Navigation: Classes > THandlers > Methods > AddForExtension |
This method registers an instance of TContentBase (or descendant class) to the content handlers list to handle all requests which URL ends with the specified extension.
SIGNATURE=IW.Content.Handlers.THandlers.AddForExtension@string@TContentBase
ETYPE=Method
Declaration:
Delphi: |
public class function AddForExtension(const aExt: string; aHandler: TContentBase): TContentBase; |
C++: |
public: __fastcall TContentBase AddForExtension(const String aExt, TContentBase aHandler); |
Description: This is AddForExtension, a member of class THandlers.
Parameters:
•aExt (string): The file extension, e.g: '*.pas'. In this example,all requests whose URL ends with ".pas" extension will be redirected to this handler.
•aHandler (TContentBase): The instance that will handle the request
Result: Returns the instance (the same reference received in aHandler parameter).