TTMSMCPSessionState.SetUserData Method
Attaches a reference-counted object to this session under a caller-chosen identifier, replacing any earlier entry for the same identifier. Use it to keep per-client application state alive for the lifetime of the session.
API unit family: TMS.MCP.Server
Declaring type: TTMSMCPSessionState
Syntax
procedure SetUserData(const AGuid: TGUID; const AInterface: IInterface);
Parameters
| Name | Description |
|---|---|
AGuid |
Identifier the entry is stored under. |
AInterface |
Interface reference to attach. The session holds a reference until the entry is removed or the session ends. |