TTMSMCPTargets Class
Collection of the classes and objects a server reflects over.
API unit family: TMS.MCP.Attributes.Server
Inherits from: TTMSMCPOwnedCollection<TTMSMCPTarget>
Syntax
TTMSMCPTargets = class(TTMSMCPOwnedCollection<TTMSMCPTarget>)
Remarks
The methods of this collection only maintain its entries; they do not reflect over them. Adding a target here while the server is already running leaves the published tools, resources and prompts unchanged. Use the corresponding methods on the server to add a target and run the reflection pass in one step.
Properties
| Name | Description |
|---|---|
| Items | Provides indexed access to the targets in the collection. |
Methods
| Name | Description |
|---|---|
| Add | Adds an empty target to the collection. |
| AddClass | Adds a target for a class, unless the class is already present. |
| AddObject | Adds a target for an object, unless the object is already present. |
| FindByClass | Searches the collection for the target of a class. |
| FindByObject | Searches the collection for the target of an object. |