Soap.InvokeRegistry.ISOAPHeaders.OwnsSentHeaders

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OwnsSentHeaders: Boolean read GetOwnsSentHeaders write SetOwnsSentHeaders;

C++

__property bool OwnsSentHeaders = {read=GetOwnsSentHeaders, write=SetOwnsSentHeaders};

Properties

Type Visibility Source Unit Parent
property public
Soap.InvokeRegistry.pas
Soap.InvokeRegistry.hpp
Soap.InvokeRegistry ISOAPHeaders

Description

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

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.

See Also