RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TAbstractWebContext.FindApplicationModule Method

Returns the application module instance.

Pascal
function FindApplicationModule(WebModuleContext: TWebModuleContext): TComponent; virtual; abstract;
C++
virtual __fastcall TComponent * FindApplicationModule(TWebModuleContext WebModuleContext) = 0;

Call FindApplicationModule to access the main Web module in the WebSnap application. FindApplicationModule returns a reference to the module that the WebSnap application wizard creates. This can be an instance of TWebAppPageModule or TWebAppDataModule. 

The Application module is the module that holds the application-wide components such as the page dispatcher, end user adapter, application adapter, and so on. 

WebModuleContext is a context object that holds design-time information about the application modules. It is only used at design time. 

 

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