REST.Backend.EMSApi.TEMSClientAPI.QueryModules
Delphi
procedure QueryModules(const AQuery: array of string; const AJSONArray: TJSONArray); overload;
procedure QueryModules(const AQuery: array of string; const AJSONArray: TJSONArray; out AModules: TArray<TModule>); overload;
C++
void __fastcall QueryModules(const System::UnicodeString *AQuery, const int AQuery_High, System::Json::TJSONArray* const AJSONArray)/* overload */;
void __fastcall QueryModules(const System::UnicodeString *AQuery, const int AQuery_High, System::Json::TJSONArray* const AJSONArray, /* out */ System::DynamicArray<TModule> &AModules)/* overload */;
Inhaltsverzeichnis
Eigenschaften
Typ | Sichtbarkeit | Quelle | Unit | Übergeordnet |
---|---|---|---|---|
procedure function |
public | REST.Backend.EMSApi.pas REST.Backend.EMSApi.hpp |
REST.Backend.EMSApi | TEMSClientAPI |
Beschreibung
Fragt den EMS-Server nach einer Modulliste ab.
QueryModules übernimmt die folgenden Parameter:
AQuery
ist ein Array mit Strings, wobei jeder String ein durch ein Gleichheitszeichen getrenntes Schlüssel/Wertepaar enthält, z. B. "my_parameter=my_value". QueryModules fügt der Anforderung diese Schlüssel/Wertepaare als Parameter hinzu.- QueryModules füllt
AJSONArray
mit den Ergebnissen vom EMS-Server.
Sie können optional ein Array mit TModule-Instanzen (AModules
) angeben, damit QueryModules das Array mit den vom EMS-Server zurückgegebenen Modulen füllt.
Exceptions
Exception | Meldung | Beschreibung |
---|---|---|
JSON-Objekt erwartet |
Sie haben an QueryModules ein Array mit TModule-Instanzen ( Die erwartete Struktur der erhaltenen JSON-Daten ist ein JSON-Array mit JSON-Objekten. Jedes dieser Objekte repräsentiert einen Benutzer. Die tatsächliche Struktur der erhaltenen JSON-Daten ist ein JSON-Array, das mindestens einen Eintrag enthält, der kein JSON-Objekt ist. | |
MasterSecret erforderlich |
Authentication ist TAuthentication.MasterSecret und ConnectionInfo.MasterSecret ist ein leerer String. | |
Sitzungs-Token erforderlich |
Authentication ist TAuthentication.Session, und Sie haben sich nicht angemeldet oder das bei der Anmeldung (Login) angegebene Sitzungsauthentifizierungs-Token ist ein leerer String. |
Siehe auch
- REST.Backend.EMSApi.TEMSClientAPI.RegisterModule
- REST.Backend.EMSApi.TEMSClientAPI.RetrieveModule
- REST.Backend.EMSApi.TEMSClientAPI.RetrieveModulesFields
- REST.Backend.EMSApi.TEMSClientAPI.UpdateModule
- REST.Backend.EMSApi.TEMSClientAPI.QueryModuleName
- REST.Backend.EMSApi.TEMSClientAPI.UnregisterModule