Datasnap.DSServer.TDSServer.NotifyObject
Delphi
function NotifyObject(const ChannelName: string; const ClientId: string; const CallbackId: string; const Msg: TObject; out Response: TObject; Timeout: Cardinal = INFINITE): Boolean; overload; deprecated 'ChannelName is no longer required';
function NotifyObject(const ClientId: string; const CallbackId: string; const Msg: TObject; out Response: TObject; Timeout: Cardinal = INFINITE): Boolean; overload;
C++
bool __fastcall NotifyObject _DEPRECATED_ATTRIBUTE1("ChannelName is no longer required") (const System::UnicodeString ChannelName, const System::UnicodeString ClientId, const System::UnicodeString CallbackId, System::TObject* const Msg, /* out */ System::TObject* &Response, unsigned Timeout = (unsigned)(0xffffffff))/* overload */;
bool __fastcall NotifyObject(const System::UnicodeString ClientId, const System::UnicodeString CallbackId, System::TObject* const Msg, /* out */ System::TObject* &Response, unsigned Timeout = (unsigned)(0xffffffff))/* overload */;
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | Datasnap.DSServer.pas Datasnap.DSServer.hpp |
Datasnap.DSServer | TDSServer |
説明
コールバックへ同期的にオブジェクト配信を実行します。
NotifyObject メソッドは、クライアント チャネルに配置されたコールバックへ同期的にオブジェクト配信を実行します。NotifyObject は、オブジェクト配信に成功した場合は True を返し、それ以外の場合は False を返します。NotifyObject を ChannelName 、ClientId 、CallbackId 、Msg 、Response 、および Timeout パラメータとともに呼び出します。
ChannelName は、チャネル コールバックの名前を表します。
ClientId は、クライアント チャネル コールバックの識別子を表します。
CallbackId は、コールバックの識別子を表す string です。
Msg は、ブロードキャストされるオブジェクトを格納する TObject です。
Response は、チャネル コールバックからの応答を格納する TObject です。
Timeout は、タイムアウト時間をミリ秒単位で表します。Timeout は、デフォルトで INFINITE に設定されています。