Datasnap.Win.MConnect.TCustomObjectBroker.GetComputerForGUID

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: TCustomObjectBroker

Delphi

function GetComputerForGUID(GUID: TGUID): string; virtual; abstract;

C++

virtual System::UnicodeString __fastcall GetComputerForGUID(const GUID &GUID) = 0 ;

Description

Returns a string that identifies a server machine for an interface identified by its GUID.

Call GetComputerForGUID to obtain a string that identifies a server machine on which a given interface is registered. The GUID parameter specifies the global unique identifier of the desired interface.

TCustomObjectBroker declares GetComputerForGUID as an abstract (pure virtual) method. It is implemented in descendant objects that return a string designed to work with a particular connection component.

Connection components call this method, passing in the value of their ServerGUID property. They use the return value to set the ComputerName, URL, Host, or Address property, as appropriate.

See Also