Datasnap.DSProxyRest.TDSRestClient.Create
Delphi
constructor Create(AConnection: TDSCustomRestConnection); overload;
constructor Create(AConnection: TDSCustomRestConnection; AInstanceOwner: Boolean); overload;
C++
__fastcall TDSRestClient(Datasnap::Dsclientrest::TDSCustomRestConnection* AConnection)/* overload */;
__fastcall TDSRestClient(Datasnap::Dsclientrest::TDSCustomRestConnection* AConnection, bool AInstanceOwner)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
constructor | public | Datasnap.DSProxyRest.pas Datasnap.DSProxyRest.hpp |
Datasnap.DSProxyRest | TDSRestClient |
Description
Creates a new TDSRestClient class instance.
The Create method creates a new instance of the TDSRestClient class. There are two Create overloads. The first overload takes in a single parameter, called AConnection, which specifies the DataSnap custom REST connection. The second Create overload accepts two parameters, AConnection and AInstanceOwner. AInstanceOwner specifies whether AConnection is owned by the TDSRestClient instance or not.