checkAgentVersion
Some tooltip text!
• 1 minute to read
• 1 minute to read
Description
Caution
This method should normally not be used.
Checks if your Service Agent client is older than the one available on the server. You can also be notified that you should upgrade as the version you are using is incompatible with SuperOfficeService on the server.
In parameters
| Parameter | Description |
|---|---|
| sessionKey | A valid session key |
| version | The version of the agent |
Out parameters
| Parameter | Description |
|---|---|
| errorCode | See list of codes |
| newVersion | True if there is a new version on the server. |
Example
admin.adminService adminService = new admin.adminService();
ticket.ticketService ticketService = new ticket.ticketService();
string sessionKey;
string errorCode = ticketService.login("egon", "norges bank", out sessionKey);
if (errorCode.Equals("0"))
{
boolean newVersion;
boolean forceUpgrade;
adminService.checkAgentVersion(sessionKey, "13", out newVersion, out forceUpgrade);
if(newVersion)
{
//...doUpgradeStuff()...
}
}
redirect_from: /en/service/soap/ports/admin/checkagentversion