RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWebPageModuleFactory.Create Constructor

Creates and initializes an instance of TWebPageModuleFactory.

Pascal
constructor Create(AComponentClass: TComponentClass; AWebPageInfo: TAbstractWebPageInfo; ACreateMode: TWebModuleCreateMode = crOnDemand; ACacheMode: TWebModuleCacheMode = caCache);
C++
__fastcall TWebPageModuleFactory(TComponentClass AComponentClass, TAbstractWebPageInfo AWebPageInfo, TWebModuleCreateMode ACreateMode = crOnDemand, TWebModuleCacheMode ACacheMode = caCache);

Call Create to instantiate a Web page module factory. Typically, the Web page module wizard generates the call to the constructor in the Web page module's unit. In Delphi, the constructor call is placed in the initialization section of the unit. In C++, the call is placed in a #pragma startup. 

AComponentClass is the class of the Web page module that this factory object creates. 

AWebPageInfo describes the attributes of the Web page module, such as the page name, page title, access strings, and so on. This becomes the value of the WebPageInfo property. 

ACreateMode describes whether the factory should create instances of the Web page module for every request message, or only when the application explicitly requests the Web page module. This becomes the value of the CreateMode property. 

ACacheMode indicates whether the application can cache Web page module instances for reuse with subsequent request messages. This becomes the value of the CacheMode property. 

 

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