RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDispatchConnection.GetServerCLSID Method

Returns the GUID for the application server.

Pascal
function GetServerCLSID: TGUID;
C++
__fastcall TGUID GetServerCLSID();

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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!