RAD Studio VCL Reference
|
Specifies a content producer that generates the content of response messages when the action item executes.
property Producer: TCustomContentProducer;
__property TCustomContentProducer Producer;
Set Producer to associate the action item with a content producer of the type TCustomContentProducer. (If a content producer of type IProduceContent is used instead of TCustomContentProducer, then the property ProducerContent should be set instead.) If Producer is not nil (Delphi) or NULL (C++), then when the web dispatcher passes a request message to the action item, the action item sets the Content property of the response message to the value returned by the producer's Content method. After the content producer has assigned the response's Content property, the action item receives an OnAction event, where it can optionally set other response properties or send the response message.
If Producer is nil (Delphi) or NULL (C++), the action item must use the OnAction event handler to influence the response message.
The properties Producer and ProducerContent are mutually exclusive. If one is set, the other must not be.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|