Datasnap.Win.MConnect.TDispatchConnection.GetServer

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: function
Visibility: public
Source:
Datasnap.Win.MConnect.pas
Datasnap.Win.MConnect.hpp
Unit: Datasnap.Win.MConnect
Parent: TDispatchConnection

Delphi

function GetServer: IAppServer; override;

C++

virtual Datasnap::Midas::_di_IAppServer __fastcall GetServer();

Description

Returns the IAppServer interface of the application server.

Client datasets call GetServer to set the value of their AppServer property. This allows them to access providers on the remote application server.

GetServer ensures that there is a connection and then returns an IAppServer interface that can be used to communicate with providers on the application server. To use other methods of the application server's interface, use the AppServer property instead.

See Also