RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
ISOAPHeaders.OwnsSentHeaders Property

Indicates who is responsible for freeing header objects that are included in outbound messages.

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

Use OwnsSentHeaders to indicate whether the header object instances you create and add to messages by calling the Send or SendAt method should be freed by the object that implements this interface. When OwnsSentHeaders is true, the object implementing ISOAPHeaders frees the header objects after sending them. When OwnsSentHeaders is false, the caller is responsible for freeing the header objects.

Note: For inbound headers (headers retrieved from incoming messages), the object that implements always frees them unless you call the Get method. After a call to Get, the caller is responsible for freeing the header, except on the server, where the header object is freed by the header object's DataContext.
 

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