Datasnap.DSServer.TDSServer.NotifyObject

Aus RAD Studio API Documentation
Wechseln zu: Navigation, Suche

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 */;

Eigenschaften

Typ Sichtbarkeit Quelle Unit Übergeordnet
function public
Datasnap.DSServer.pas
Datasnap.DSServer.hpp
Datasnap.DSServer TDSServer

Beschreibung

Führt eine synchrone Objektauslieferung an eine Callback-Funktion aus.

Die Methode NotifyObject führt eine synchrone Objektauslieferung an eine Callback-Funktion, die sich in einem Client-Kanal befindet. NotifyObject gibt True zurück, wenn die Auslieferung erfolgreich ist. Ansonsten wird False zurückgegeben. Rufen Sie NotifyObject mit den Parametern ChannelName, ClientId, CallbackId, Msg, Response und Timeout auf.

ChannelName repräsentiert den Namen des Kanal-Callbacks.

ClientId repräsentiert den Bezeichner der Callback-Funktion in einem Client-Kanal.

CallbackId ist ein String, der den Callback-Bezeichner repräsentiert.

Msg ist eine Klasse TObject, die das zu sendende Objekt enthält.

Response ist eine Klasse TObject, die die Antwort des Kanal-Callbacks enthält.

Timeout repräsentiert das Zeitüberschreitungsintervall in Millisekunden. Standardmäßig wird dieser Parameter auf INFINITE gesetzt.

Siehe auch