FireDAC.Comp.Client.TFDCustomSchemaAdapter.SaveToStream
| [–] Properties | |
|---|---|
| Type: procedure function
| |
| Visibility: public | |
| Source: FireDAC.Comp.Client.pas FireDAC.Comp.Client.hpp
| |
| Unit: FireDAC.Comp.Client | |
| Parent: TFDCustomSchemaAdapter | |
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));
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.