Datasnap.Win.MConnect.TDispatchConnection.GetServerCLSID

From RAD Studio API Documentation
Jump to: navigation, search

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

Delphi

function GetServerCLSID: TGUID;

C++

GUID __fastcall GetServerCLSID();

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