Table of Contents

TTMSMCPTargets.AddClass Method

Adds a target for a class, unless the class is already present.

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

Syntax

function AddClass(AClass: TClass): TTMSMCPTarget;

Remarks

This only records the entry. Call the method of the same name on the server to add the class and register its methods in one step.

Parameters

Name Description
AClass Class to reflect over. Only its class methods can be invoked, since the collection holds no instance for it.

Returns

The existing target for the class, the newly added target, or nil when no class was passed.