REST.Backend.PushTypes.TBackendPushApi.PushDataAsJSON

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

function PushDataAsJSON(const AData: TPushData): TJSONObject;

C++

System::Json::TJSONObject* __fastcall PushDataAsJSON(TPushData* const AData);

Propriétés

Type Visibilité  Source Unité  Parent
function public
REST.Backend.PushTypes.pas
REST.Backend.PushTypes.hpp
REST.Backend.PushTypes TBackendPushApi


Description

Accepte un objet TPushData et renvoie sa représentation TJSONObject.

PushDataAsJSON vérifie si le fournisseur prend en charge l'interface IBackendPushApi2. Si c'est le cas, PushDataAsJSON appelle IBackendPushApi2.PushDataAsJSON. Sinon, PushDataAsJSON déclenche une exception.

Exceptions

Un appel à PushDataAsJSON peut déclencher l'exception suivante :

Exception Exception.Message Scénarios

ENotSupportedException

Le fournisseur ne prend pas en charge cette opération.

  • Le fournisseur actuel ne prend pas en charge cette opération.

Voir aussi