Datasnap.DSSession.TDSSession.LastResultStream

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: property
Visibility: public
Source:
Datasnap.DSSession.pas
Datasnap.DSSession.hpp
Unit: Datasnap.DSSession
Parent: TDSSession

Delphi

property LastResultStream: TObject read FLastResultStream write FLastResultStream;

C++

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

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.