RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWebActionItem.Enabled Property

Indicates whether the action item can respond to HTTP request messages that match its MethodType and PathInfo properties.

Pascal
property Enabled: Boolean;
C++
__property Boolean Enabled;

Set Enabled to false to disable an action item. TWebDispatcher will ignore disabled action items when it looks for an action item to handle a request. 

When an action item is chosen as the default action item, the value of its Enabled property is ignored. Thus, if an action item sets Enabled to false and Default to true, TWebDispatcher will first look for a match with any other action item, even if the PathInfo and MethodType of the default action item match the request perfectly. Then, only after all other action items have been rejected, the TWebDispatcher selects the default action item. If the default action item is enabled, it may be selected before all other action items have been considered because the MethodType and PathInfo match the request. 

 

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