REST.Backend.PushTypes.TBackendPushApi.PushToTarget
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 */;
Inhaltsverzeichnis
Eigenschaften
Typ | Sichtbarkeit | Quelle | Unit | Übergeordnet |
---|---|---|---|---|
procedure function |
public | REST.Backend.PushTypes.pas REST.Backend.PushTypes.hpp |
REST.Backend.PushTypes | TBackendPushApi |
Beschreibung
Sendet die angegebenen Benachrichtigungsdaten an das angegebene Ziel.
Sie können den Parameter AData
als TPushData oder als TJSONObject und den Parameter ATarget
als TJSONObject angeben.
PushToTarget überprüft, ob der Provider das Interface IBackendPushApi3 unterstützt.
Wenn ja, ruft PushToTarget IBackendPushApi3.PushToTarget auf.
Andernfalls überprüft PushToTarget den Wert des Parameters ATarget
:
- Wenn Sie
AData
als TPushData angeben und einennil
-Wert als ParameterATarget
übergeben, ruft PushToTarget IBackendPushApi.PushBroadcast auf. - Andernfalls löst PushToTarget eine Exception aus.
Exceptions
Ein Aufruf von PushToTarget kann eine der folgenden Exceptions auslösen:
Exception | Exception.Message | Szenarien |
---|---|---|
Provider unterstützt diese Operation nicht |
|