Datasnap.Win.ObjBrkr.TServerCollection.GetBalancedName
Delphi
function GetBalancedName: string;
C++
System::UnicodeString __fastcall GetBalancedName(void);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | Datasnap.Win.ObjBrkr.pas Datasnap.Win.ObjBrkr.hpp |
Datasnap.Win.ObjBrkr | TServerCollection |
説明
Items プロパティ配列からランダムに選択されたサーバーの ComputerName プロパティを返します。
GetBalancedName メソッドを呼び出すと,使用可能なサーバーの名前を取得できます。Items プロパティ配列にあるサーバーは,接続の試みが失敗している場合(HasFailed が false),および Enabled プロパティが false に設定されている場合を除いて使用可能と判断されます。GetBalancedName は,Items プロパティ配列から使用可能な TServerItem をランダムに選択し,その ComputerName プロパティを返します。