TTMSMCPServerFactory.CreateFromObject Method
Creates a server that reflects over an existing object.
API unit family: TMS.MCP.Attributes.Server
Declaring type: TTMSMCPServerFactory
Syntax
class function CreateFromObject(AObject: TObject; AOwner: TComponent = nil): TTMSMCPAttributedServer;
Parameters
| Name | Description |
|---|---|
AObject |
Instance carrying the attributes. It is not owned by the server and has to outlive it. |
AOwner |
Component that owns the created server, or nil to manage its lifetime manually. |
Returns
A server whose declarations are already registered from the object.