API:Soap.XSBuiltIns.TXMLData.Destroy

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

destructor  Destroy; override;

C++

__fastcall virtual ~TXMLData();

Properties

Type Visibility Source Unit Parent
destructor public
Soap.XSBuiltIns.pas
Soap.XSBuiltIns.hpp
Soap.XSBuiltIns TXMLData

Description

Frees the memory associated with the TRemotable object.

Soap.XSBuiltIns.TXMLData.Destroy inherits from Soap.InvokeRegistry.TRemotable.Destroy. All content below this line refers to Soap.InvokeRegistry.TRemotable.Destroy.

Frees the memory associated with the TRemotable object.

Use the Free method to free a TRemotable instance. Free checks that the object is not nil before calling Destroy.

On server applications, there is typically no need to explicitly free a TRemotable instance (for example, one created as a return value or output parameter). By default, when a TRemotable descendant is created in a method that was called remotely using an invokable interface, it is added to a data context (the value of the DataContext property). As long as the remotable object belongs to the data context, the data context handles freeing the object. Similarly, TRemotable instances that are passed in as a parameter belong to the data context.

On client applications, TRemotable instances created and passed to an invokable interface or returned as a parameter or result of an invokable interface must be freed by the calling application.

See Also