Table of Contents

TTMSMCPClientServers.SaveToJSONFile Method

Writes the server list to a configuration file, encoded as UTF-8.

API unit family: TMS.MCP.Client Declaring type: TTMSMCPClientServers

Overloads

Overload 1

Writes the server list to a configuration file, encoded as UTF-8.

procedure SaveToJSONFile(AFileName: string); overload;

Remarks

See the overload that takes an encoding for what is written.

Parameters

Name Description
AFileName Full path of the file to write; an existing file is replaced.

Overload 2

Writes the server list to a configuration file.

procedure SaveToJSONFile(AFileName: string; AEncoding: TEncoding); overload;

Remarks

Only the connection settings are written: the display name and the channel, plus the command, arguments and environment for a standard-stream entry or the address for a remote one. Capabilities, authorization settings and the cached catalogs are not written, so a list that is saved and loaded again has to have those configured once more.

Parameters

Name Description
AFileName Full path of the file to write; an existing file is replaced.
AEncoding Encoding to write the file in.