Process.GetProcessVersion
Description
The API gets the latest version details of the specified process name from the connected AI Command Center.
Signature [C#]
Task<string> GetProcessVersion(string processName);
Properties
Input
| Parameter | Type | Required / default | Description |
|---|---|---|---|
processName | string | Required | Specify the process Name for which the version has to be retrieved. |
Output
| Property | Description |
|---|---|
Task<string> | Returns the value that indicates the latest version of a Process. |
Remarks
Use GetProcessVersion API to get the latest version details of the specified process name from the connected AI Command Center.
Example
C#
public async Task GetProcessVersion()
{
IControlRoomContext context = LoginControlRoom();
try
{
string processName = "Create_And_Delete_File";
var processVersion = await context.Processes.GetProcessVersion(processName);
Console.WriteLine("Process version: " + processVersion);
}
finally
{
context.Close();
}
}
Connection helper
public IControlRoomContext LoginControlRoom()
{
string RequiredSetting(string name) => Environment.GetEnvironmentVariable(name) ?? throw new InvalidOperationException($"Set {name} before running this example.");
string serverUrl = RequiredSetting("INTELLIBUDDIES_SERVER_URL");
string userName = RequiredSetting("INTELLIBUDDIES_USERNAME");
string password = RequiredSetting("INTELLIBUDDIES_PASSWORD");
string connectionString = $"ServerUrl={serverUrl};UserName={userName};Password={password}";
IControlRoomContext context = new ControlRoomContext(connectionString);
context.Open();
return context;
}
See Get started for namespaces, configuration, and context cleanup, and SDK usage for error handling.