Show: Delphi
C++
Display Preferences
Datasnap.DSCommonServer.TDSServerMethodProvider.GetServerClass
From XE2 API Documentation
Delphi
procedure GetServerClass(const ClassName: UnicodeString; const Container: TJSONObject);
C++
void __fastcall GetServerClass(const System::UnicodeString ClassName, const Data::Dbxjson::TJSONObject* Container);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
procedure function |
public | Datasnap.DSCommonServer.pas Datasnap.DSCommonServer.hpp |
Datasnap.DSCommonServer | TDSServerMethodProvider |
Description
Appends the JSON representation of the server class to the provided container.
The GetServerClass method appends the JSON representation of the server class to the provided container as in the following code snippet:
{'className':{'LifeCycle':'xyz','RoleName':'abc','methods':['method1',...]}}
In case the server does not expose the given class name, GetServerClass appends the following:
{'className':null}
GetServerClass takes in two parameters:
-
ClassName--the server class name. It cannot be null or empty. -
Container--the container to be appended to.