Datasnap.Win.ObjBrkr.TServerCollection.GetBalancedName
Delphi
function GetBalancedName: string;
C++
System::UnicodeString __fastcall GetBalancedName();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Datasnap.Win.ObjBrkr.pas Datasnap.Win.ObjBrkr.hpp |
Datasnap.Win.ObjBrkr | TServerCollection |
Description
Returns the ComputerName property of a randomly chosen server from the Items property array.
Call GetBalancedName to get the name of an available server. Servers in the Items property array are considered available when no connection attempts have failed (HasFailed is false) and their Enabled property has not been set to false. GetBalancedName selects an available TServerItem at random from the Items property array and returns its ComputerName property.