Datasnap.DSServer.TDSCallbackTunnel.SendMessage

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

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 は、IdMsgTimeout 、および ArgType パラメータとともに呼び出される必要があり、タイムアウトしなかった場合は True を、それ以外の場合は False を返します。

Id は、コールバックの識別子を表す string です。

Msg は、送信されるメッセージを格納する TJSONValue です。

Timeout は、タイムアウト時間をミリ秒単位で表します。Timeout は、デフォルトで 0 ミリ秒に設定されています。

ArgType は、JSON 引数を表します。

関連項目