RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWebDataModuleFactory.Create Constructor

Creates and initializes an instance of TWebDataModuleFactory.

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

Call Create to instantiate a Web data module factory. Typically, the Web module wizard generates the call to the constructor in the initialization section of the Web data module's unit. 

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

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

ACacheMode indicates whether the application can cache Web data 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!