FireDAC.Comp.Client.TFDCustomSchemaAdapter.SaveToStream
Delphi
procedure SaveToStream(AStream: TStream; AFormat: TFDStorageFormat = sfAuto);
C++
void __fastcall SaveToStream(System::Classes::TStream* AStream, Firedac::Stan::Intf::TFDStorageFormat AFormat = (Firedac::Stan::Intf::TFDStorageFormat)(0x0));
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | FireDAC.Comp.Client.pas FireDAC.Comp.Client.hpp |
FireDAC.Comp.Client | TFDCustomSchemaAdapter |
Description
Saves the content of the datasets associated with a TFDCustomSchemaAdapter to a stream.
Use the SaveToStream procedure to save the content of the datasets associated with a TFDCustomSchemaAdapter to a stream.
AStream
is the reference to the stream to which to write the data.
AFormat
is the file format:
sfXML
: an XML file.sfBinary
: a binary stream with a custom FireDAC format.sfAuto
: the format is determined by the ResourceOptions.DefaultStoreExt, provided that it is specified; otherwise, by ResourceOptions.DefaultStoreFormat.
SaveToStream stores into the stream the items specified by ResourceOptions.StoreItems.