Datasnap.Win.ObjBrkr.TServerCollection.FindServer

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

function FindServer(const ComputerName: string): TServerItem;

C++

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

プロパティ

種類 可視性 ソース ユニット
function public
Datasnap.Win.ObjBrkr.pas
Datasnap.Win.ObjBrkr.hpp
Datasnap.Win.ObjBrkr TServerCollection

説明

Items プロパティ配列から指定したコンピュータ名を持つサーバーを返します。

FindServer メソッドを呼び出すと,ComputerName プロパティを指定して Items プロパティ配列でサーバーを見つけることができます。ComputerName パラメータは,このコンピュータ名を指定します。通常,この値は GetBalancedName または GetNextName の前回の呼び出しで取得されます。

メモ:  FindServer は,指定した ComputerName プロパティで見つかる最初の項目を返します。GetBalancedName メソッドおよび GetNextName メソッドと違って,このメソッドは失敗したサーバー(HasFailed が true),または無効のサーバー(Enabled が false)を無視しません。

関連項目