RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TMultiModuleWebAppServices.CreateContext Method

Creates the Web context for the current request message.

Pascal
function CreateContext: TAbstractWebContext; virtual;
C++
virtual __fastcall TAbstractWebContext CreateContext();

The InitContext method calls CreateContext to instantiate the Web context object for the current request. This context can then be accessed by the WebSnap application using the global WebContext function. 

In TMultiModuleWebAppServices, CreateContext creates a TWebContext object, passing the values of the Request, Response, and WebModules properties to the constructor. The Web context is created without a session. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!