Datasnap.Win.ObjBrkr.TServerCollection.FindServer

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function FindServer(const ComputerName: string): TServerItem;

C++

TServerItem* __fastcall FindServer(const System::UnicodeString ComputerName);

Properties

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

Description

Returns the server from the Items property array that has a specified computer name.

Call FindServer to locate a server in the items property array given its ComputerName property. The ComputerName parameter specifies this computer name. Usually, this value is obtained by a previous call to GetBalancedName or GetNextName.

Note: FindServer returns the first item it finds with the given ComputerName property. Unlike the GetBalancedName and GetNextName methods, it does not ignore servers that have failed or been disabled (HasFailed is true, or Enabled is false).

See Also