RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TSimpleObjectBroker.SetConnectStatus Method

Records whether a connection was established to a specified server.

Pascal
procedure SetConnectStatus(ComputerName: string; Success: Boolean); override;
C++
virtual __fastcall SetConnectStatus(AnsiString ComputerName, Boolean Success);

After calling GetComputerForGUID or GetComputerForProgID, connection components use the returned value to open a connection to the identified server. They then call SetConnectStatus to inform the broker of whether the connection was successfully opened. 

SetConnectStatus sets the HasFailed property of the corresponding server to true if the connection was unsuccessful. It sets the HasFailed property to false if the connection was successful. 

When the HasFailed property of a server is true, that server is ignored when the GetComputerForGUID or GetComputerForProgID method looks for available connections. 

 

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