Datasnap.Win.MConnect.TDispatchConnection.ServerGUID

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property ServerGUID: string read GetServerGUID write SetServerGUID;

C++

__property System::UnicodeString ServerGUID = {read=GetServerGUID, write=SetServerGUID};

Properties

Type Visibility Source Unit Parent
property published
Datasnap.Win.MConnect.pas
Datasnap.Win.MConnect.hpp
Datasnap.Win.MConnect TDispatchConnection

Description

Specifies the GUID of the application server with which to connect.

Use ServerGUID to specify the application server to which the client application should connect by its GUID (global unique identifier). If the value specifies a valid GUID for a registered application server, setting ServerGUID changes the value of ServerName to the class name of the corresponding COM object.

Using ServerGUID rather than ServerName to identify the application server is more robust because it does not require the application server to be registered on the client system.

Note: Either ServerName or ServerGUID must be provided so that the dispatch connection can create and communicate with the appropriate server COM object. This is true even for connections that are not formed using DCOM, because the remote data module on the application server is always implemented as a COM object.

See Also