REST.Backend.PushTypes.TBackendPushApi.PushToTarget

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure PushToTarget(const AData: TPushData; const ATarget: TJSONObject); overload;
procedure PushToTarget(const AData: TJSONObject; const ATarget: TJSONObject); overload;

C++

void __fastcall PushToTarget(TPushData* const AData, System::Json::TJSONObject* const ATarget)/* overload */;
void __fastcall PushToTarget(System::Json::TJSONObject* const AData, System::Json::TJSONObject* const ATarget)/* overload */;

Properties

Type Visibility Source Unit Parent
procedure
function
public
REST.Backend.PushTypes.pas
REST.Backend.PushTypes.hpp
REST.Backend.PushTypes TBackendPushApi

Description

Sends the specified notification data to the specified target.

You can specify the AData parameter as TPushData or as a TJSONObject and the ATarget parameter as a TJSONObject.

PushToTarget checks if the provider supports the IBackendPushApi3 interface. If yes, PushToTarget calls IBackendPushApi3.PushToTarget. Otherwise, PushToTarget checks the value of the ATarget parameter:

Exceptions

A call to PushToTarget may raise the following exception:

Exception Exception.Message Scenarios

ENotSupportedException

Provider does not support this operation

  • The current provider does not support this operation.

See Also