EMS.Services.IEMSResourceResponseContent.TryGetStream
[–] Properties | |
---|---|
Type: function | |
Visibility: public | |
Source: EMS.Services.pas EMS.Services.hpp
| |
Unit: EMS.Services | |
Parent: IEMSResourceResponseContent |
Delphi
function TryGetStream(out AStream: TStream): Boolean; overload;
function TryGetStream(out AStream: TStream; out AContentType: string): Boolean; overload;
C++
virtual bool __fastcall TryGetStream(/* out */ System::Classes::TStream* &AStream) = 0 /* overload */;
virtual bool __fastcall TryGetStream(/* out */ System::Classes::TStream* &AStream, /* out */ System::UnicodeString &AContentType) = 0 /* overload */;
Description
If the response content is not empty, TryGetStream fills AStream
with the response content as an instance of TStream and returns True
. TryGetStream returns False
otherwise.