Datasnap.DSCommonServer.TDSServerMethodProvider.GetServerClass

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure GetServerClass(const ClassName: string; const Container: TJSONObject);

C++

void __fastcall GetServerClass(const System::UnicodeString ClassName, System::Json::TJSONObject* const 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.

See Also