Datasnap.DSCommonServer.TDSServerMethodProvider.GetServerClass

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: public
Source:
Datasnap.DSCommonServer.pas
Datasnap.DSCommonServer.hpp
Unit: Datasnap.DSCommonServer
Parent: TDSServerMethodProvider

Delphi

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

C++

void __fastcall GetServerClass(const System::UnicodeString ClassName, System::Json::TJSONObject* const Container);

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