Datasnap.Win.ObjBrkr.TSimpleObjectBroker.SetConnectStatus

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SetConnectStatus(ComputerName: string; Success: Boolean); override;

C++

virtual void __fastcall SetConnectStatus(System::UnicodeString ComputerName, bool Success);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Datasnap.Win.ObjBrkr.pas
Datasnap.Win.ObjBrkr.hpp
Datasnap.Win.ObjBrkr TSimpleObjectBroker

Description

Records whether a connection was established to a specified server.

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.

See Also