Skip to main content
Table of Contents

TTMSMCPTarget.TargetComponent Property

Component used as the target, which is how a target is set at design time.

API unit family: TMS.MCP.Attributes.Server Declaring type: TTMSMCPTarget Type: TComponent

Syntax

TMS.MCP.Attributes.Server.hppPascalC++
property TargetComponent: TComponent;
__property System::Classes::TComponent* TargetComponent = {read=GetTargetComponent, write=SetTargetComponent};

Remarks

Reading the property returns the target object when it is a component, and nil otherwise. Assigning it stores the instance but does not derive the target class from it, and registration needs that class; assign the target object instead, or hand the component to the server, when the reflection pass has to run over it.