Datasnap.Win.ObjBrkr.TServerItem.HasFailed

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property HasFailed: Boolean read FHasFailed write FHasFailed;

C++

__property bool HasFailed = {read=FHasFailed, write=FHasFailed, nodefault};

Properties

Type Visibility Source Unit Parent
property public
Datasnap.Win.ObjBrkr.pas
Datasnap.Win.ObjBrkr.hpp
Datasnap.Win.ObjBrkr TServerItem

Description

Indicates whether a connection attempt to the associated server machine has failed.

When connection components can't successfully open a connection to an application server, they inform the object broker by calling SetConnectStatus. The simple object broker, in turn, records this fact by setting the HasFailed property to true.

When HasFailed is false, the ComputerName property can be supplied to connection components by the object broker's GetComputerForGUID or GetComputerForProgID methods. When HasFailed is true, the server item is not returned.

Once a server has failed it is presumed to be down until the application explicitly resets the HasFailed property to false.

Do not use HasFailed to disable server items. Instead, use the Enabled property to disable servers for any reason other than a failed connection.

Note: Even when HasFailed is true, the server item is still returned by TServerCollection's FindServer method.

See Also