FireDAC.Comp.Client.TFDCustomSchemaAdapter.LoadFromStream
Delphi
procedure LoadFromStream(AStream: TStream; AFormat: TFDStorageFormat = sfAuto);
C++
void __fastcall LoadFromStream(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
Loads the content of the datasets associated with a TFDCustomSchemaAdapter from a stream.
Call the LoadFromStream procedure to load the content of the datasets associated with TFDCustomSchemaAdapter from a specific stream with a specific format.
AStream
is the reference to the stream, containing the adapter to load.
AFormat
is the file format:
sfXML
: an XML file.sfBinary
: a binary stream with custom FireDAC format.sfAuto
: the format is determined by ResourceOptions.DefaultStoreExt, provided that it is specified; otherwise, by ResourceOptions.DefaultStoreFormat.
Note: LoadFromStream tries to load from the stream the items specified by ResourceOptions.StoreItems. If the stream was written with a different StoreItems value, then an exception is raised.