Datasnap.DSServer.TDSCallbackTunnel.SendMessage
Delphi
function SendMessage(const Id: string; const Msg: TJSONValue; out RespMsg: TJSONValue; const Timeout: Cardinal = 0; const ArgType: Integer = TDBXCallback.ArgJson): Boolean;
C++
bool __fastcall SendMessage(const System::UnicodeString Id, System::Json::TJSONValue* const Msg, /* out */ System::Json::TJSONValue* &RespMsg, const unsigned Timeout = (unsigned)(0x0), const int ArgType = 0x1);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | Datasnap.DSServer.pas Datasnap.DSServer.hpp |
Datasnap.DSServer | TDSCallbackTunnel |
説明
コールバック チャネルを起動し、応答を待ちます。
SendMessage メソッドは、コールバック チャネルを起動し、応答を待ちます。SendMessage は、Id 、Msg 、Timeout 、および ArgType パラメータとともに呼び出される必要があり、タイムアウトしなかった場合は True を、それ以外の場合は False を返します。
Id は、コールバックの識別子を表す string です。
Msg は、送信されるメッセージを格納する TJSONValue です。
Timeout は、タイムアウト時間をミリ秒単位で表します。Timeout は、デフォルトで 0 ミリ秒に設定されています。
ArgType は、JSON 引数を表します。