Datasnap.Win.MConnect.TDispatchConnection.GetServerCLSID

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetServerCLSID: TGUID;

C++

GUID __fastcall GetServerCLSID();

Properties

Type Visibility Source Unit Parent
function protected
Datasnap.Win.MConnect.pas
Datasnap.Win.MConnect.hpp
Datasnap.Win.MConnect TDispatchConnection

Description

Returns the GUID for the application server.

GetServerCLSID is used internally to obtain the GUID for the application server.

In most cases, GetServerCLSID returns the value of the ServerGUID property. However, if the application server was specified using the ServerName property, and the application server was not registered when the ServerName property was set, ServerGUID will not represent the application server's GUID. GetServerCLSID can return a GUID that only becomes available when a connection is opened.

If neither the ServerName nor the ServerGUID property is set, GetServerCLSID raises an exception.

See Also