RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TAbstractWebModuleList.Items Property

Lists the instantiated Web modules in the current thread.

Pascal
property Items [I: Integer]: TComponent;
C++
__property TComponent * Items[int I];

Read Items to access the Web modules that have been created to process the current HTTP request.  

Use the ItemCount property in conjunction with Items to iterate over all the Web modules in the current thread. 

I is the index of the object to read, where 0 identifies the first Web module, 1 identifies the second Web module, and so on, until ItemCount – 1 identifies the last Web module.

Note: In Delphi, Items is the default property of TAbstractWebModuleList. This means that the property name may be omitted. Thus the line
Note: MyModule := WebContext.WebModules.Items[I];
Note: can be written
Note: MyModule := WebContext.WebModules[I];
Note: In C++, a similar effect to the use of Items as a default property can be achieved using the [] operator.
 

 

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