Datasnap.DSProxyRest.TDSRestClient.Create

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: constructor
Visibility: public
Source:
Datasnap.DSProxyRest.pas
Datasnap.DSProxyRest.hpp
Unit: Datasnap.DSProxyRest
Parent: TDSRestClient

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 */;

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.

See Also