Datasnap.DSSession.TDSSession.LastResultStream

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property LastResultStream: TObject read FLastResultStream write FLastResultStream;

C++

__property System::TObject* LastResultStream = {read=FLastResultStream, write=FLastResultStream};

Properties

Type Visibility Source Unit Parent
property public
Datasnap.DSSession.pas
Datasnap.DSSession.hpp
Datasnap.DSSession TDSSession

Description

Holds a reference to the last result stream sent to a client.

LastResultStream holds a reference to the last result stream sent to a client.

LastResultStream is used for REST, when sending a result stream back to the client, as there is no easy way to tie in with the response sent to the client to know when the stream is no longer needed. The object stored here is a TObject instead of a stream, in order to handle the case where there is an object wrapping the stream, and that object needs to be freed with the stream.