AddServerEx
- Last UpdatedJan 25, 2024
- 1 minute read
The AddServer method adds a server to the list.
Syntax
[Result=] aaHistClientTrend.AddServerEx(message serverName, message loginName, message password, [discrete bPersistPassword]);
Parameters
serverName
The name of the server.
loginName
A valid user name to log on to the server. If no login name is provided, Windows integrated security is used. See remarks below.
password
A valid password for the server.
bPersistPassword
If set to True, the password is remembered for the subsequent connection. The password is only remembered for a single application; the persisted password is not available to all applications.
Return Value
Returns True if the server can be added; otherwise returns False.
Remarks
All parameters are required. Errors, if any, are reported.
To use Windows integrated security, provide empty values for the login name and password, and set bPersistPassword to true:
[Result=] aaHistClientTrend.AddServerEx("MyServer", "", "", true);