RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomWebDispatcher.Create Constructor

Creates an instance of TCustomWebDispatcher.

Pascal
constructor Create(AOwner: TComponent); override;
C++
virtual __fastcall TCustomWebDispatcher(TComponent * AOwner);

Do not call the constructor for TCustomWebDispatcher. Web applications automatically include a Web module. If the Web module is replaced by another data model, the Web dispatcher should be added to the new data module at design time. Objects placed at design time are created automatically. If an application tries to create a dispatcher object in a Web module, or in a data module that already has a Web dispatcher, an exception is raised. 

Create creates the TWebActionItems object that holds the action items managed by the dispatcher. If the Web dispatcher is included in another data module, it adds a reference to itself to any content producer in that data module. 

After the Web dispatcher is created automatically at runtime, an OnCreate event occurs. 

 

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