Datasnap.Win.ObjBrkr.TServerCollection.GetBalancedName

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: function
Visibility: public
Source:
Datasnap.Win.ObjBrkr.pas
Datasnap.Win.ObjBrkr.hpp
Unit: Datasnap.Win.ObjBrkr
Parent: TServerCollection

Delphi

function GetBalancedName: string;

C++

System::UnicodeString __fastcall GetBalancedName();

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.

See Also