Skip to main content
Table of Contents

TTMSMCPAttributedServer.AddClass Method

Adds a class as a target and registers the declarations found on it.

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

Syntax

TMS.MCP.Attributes.Server.hppPascalC++
function AddClass(AClass: TClass): TTMSMCPTarget;
TTMSMCPTarget* __fastcall AddClass(System::TClass AClass);

Remarks

Like the object form, this records the target and then runs the reflection pass, unlike the method of the same name on the target collection, which only records it. Since no instance is registered, only class methods are published; an ordinary method on that class is skipped.

Parameters

Name Description
AClass Class to reflect over. Nothing happens when nil is passed.

Returns

The target created for the class, the target it already had, or nil when nil was passed.