FireDAC.Comp.Client.TFDCustomSchemaAdapter.LoadFromStream

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: public
Source:
FireDAC.Comp.Client.pas
FireDAC.Comp.Client.hpp
Unit: FireDAC.Comp.Client
Parent: TFDCustomSchemaAdapter

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));

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:

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.

See Also