Datasnap.Win.ObjBrkr.TServerCollection.FindServer

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 FindServer(const ComputerName: string): TServerItem;

C++

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

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