RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
WebDisp.TCanViewPageEvent Type

TCanViewPageEvent is the type for event handlers that indicate whether the current user can view a specified Web page.

Pascal
TCanViewPageEvent = procedure (Sender: TObject; const PageName: string; var CanView: Boolean; var AHandled: Boolean) of object;
C++
(Sender: TObject; const PageName: string; var CanView: Boolean; var AHandled: Boolean) ( TCanViewPageEvent)();

TCanViewPageEvent is the type for event handlers of a page dispatcher that indicate whether a request can be forwarded to a Web page module. 

Sender is the page dispatcher that is validating a request for the Web page module. 

PageName is the name of the Web page module to which the request is redirected. 

CanView returns an indication of whether the caller can access the specified page. For example, an OnCanViewPage event handler can set CanView to true when PageName specifies a page that does not require access rights. 

Handled returns an indication of whether the CanView parameter accurately indicates whether the caller can access the requested page. If Handled returns false (the default), the dispatcher checks the callers access rights after the event handler exits. 

 

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