Datasnap.DSServer.TDSServer.NotifyObject

De RAD Studio API Documentation
Aller à : navigation, rechercher

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

Propriétés

Type Visibilité  Source Unité  Parent
function public
Datasnap.DSServer.pas
Datasnap.DSServer.hpp
Datasnap.DSServer TDSServer

Description

Effectue une livraison synchrone d'objets à un rappel.

La méthode NotifyObject effectue une livraison synchrone d'objets à un rappel situé dans un canal client. NotifyObject renvoie True si la livraison a réussi, False sinon. Appelez NotifyObject avec les paramètres ChannelName, ClientId, CallbackId, Msg, Response et Timeout.

ChannelName représente le nom du rappel de canal.

ClientId représente l'identificateur du rappel du canal client.

CallbackId est un string représentant l'identificateur du rappel.

Msg est un TObject contenant l'objet à être diffusé.

Response est un TObject contenant la réponse du rappel de canal.

Timeout représente l'intervalle du délai d'attente en millisecondes. Par défaut, il est défini à INFINITE.

Voir aussi