RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWebContext.FindDefaultPageInfo Method

Retrieves the Web page information object for a specified class of Web module.

Pascal
function FindDefaultPageInfo(AComponentClass: TComponentClass; out APageInfo: TAbstractWebPageInfo): Boolean; override;
C++
virtual __fastcall Boolean FindDefaultPageInfo(TComponentClass AComponentClass, TAbstractWebPageInfo APageInfo);

Call FindDefaultPageInfo to obtain the Web page information object for a Web module. FindDefaultPageInfo retrieves the information object that is registered for the Web page module class specified by AComponentClass. The Web page information object describes the characteristics of the Web page, including its name, title, HREF, view access string, an indication of whether users must log in to access the page, and so on. 

AComponentClass is a class reference to the class that implements the Web page module. This class is declared in code that the Web page module wizard generates. 

APageInfo returns the Web page information object that describes the characteristics of the specified Web page module, and that provides access to the factory object that you can use to create instances of the Web page module. 

FindDefaultPageInfo returns false if it can't return a value for the APageInfo parameter. FindDefaultPageInfo returns true if it locates a registered Web page module for the class specified by AComponentClass. 

 

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