Skip to main content
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

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

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.