Table of Contents

TTMSMCPTargets.FindByClass Method

Searches the collection for the target of a class.

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

Syntax

function FindByClass(AClass: TClass): TTMSMCPTarget;

Parameters

Name Description
AClass Class to look for. The comparison is exact, so a descendant does not match its ancestor.

Returns

The matching target, or nil when the class is not in the collection.