Datasnap.Win.MConnect.TCustomObjectBroker.GetComputerForProgID

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetComputerForProgID(const ProgID): string; virtual; abstract;

C++

virtual System::UnicodeString __fastcall GetComputerForProgID(const void *ProgID) = 0 ;

Properties

Type Visibility Source Unit Parent
function public
Datasnap.Win.MConnect.pas
Datasnap.Win.MConnect.hpp
Datasnap.Win.MConnect TCustomObjectBroker

Description

Returns the machine name, URL, host name, or IP address of a server machine that supports an interface identified by its class name.

Call GetComputerForProgID to obtain the name or address of a server machine on which a given interface is registered. The ProgID parameter specifies the name of the desired interface. If the server was created using one of the remote data module wizards, this is the value that was entered as the class name for the wizard.

TCustomObjectBroker declares GetComputerForProgID 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 can call this method, passing in the value of their ServerName property. They can use the return value to set the ComputerName, URL, Host, or Address property, as appropriate.

See Also