Skip to main content
Table of Contents

TTMSMCPServerFactory.CreateFromClass Method

Creates a server that reflects over a class.

API unit family: TMS.MCP.Attributes.Server Declaring type: TTMSMCPServerFactory

Syntax

TMS.MCP.Attributes.Server.hppPascalC++
class function CreateFromClass(AClass: TClass; AOwner: TComponent = nil): TTMSMCPAttributedServer;
__classmethod TTMSMCPAttributedServer* __fastcall CreateFromClass(System::TClass AClass, System::Classes::TComponent* AOwner = (System::Classes::TComponent*)(0x0));

Parameters

Name Description
AClass Class carrying the attributes. Only its class methods are published, since no instance is registered.
AOwner Component that owns the created server, or nil to manage its lifetime manually.

Returns

A server whose declarations are already registered from the class.