Click or drag to resize
IQMS2GetReloadEngineServices Method
Gets all reload engine services.

Namespace: PIX.Services.V12.Api2
Assembly: 
Syntax
List<ServiceInfo> GetReloadEngineServices()

Return Value

Type: ListServiceInfo
List of all reload engine services.
Remarks
Security note Security Note

Requires membership of local group QlikView Management API.

Examples
This example uses the QMS API to get all the reload engine services. If everything goes well, it prints the number of reload engine services when it's done. If anything goes wrong it prints an error message.

The service key injection is assumed to be handled behind the scenes. For an example of how to inject the service key, see Samples.

C#
 using System;
 using System.Collections.Generic;
 using System.Linq;
 using QMSAPI;

class Program
{
     static void Main(string[] args)
     {
         try
         {
            // create a QMS API client
            IQMS apiClient = new QMSClient();

            //retrieve a time limited service key
            ServiceKeyClientMessageInspector.ServiceKey = apiClient.GetTimeLimitedServiceKey();

            //get a list of reload engine services
            ServiceInfo[] reloadEngines = apiClient.GetReloadEngineServices();
            Console.WriteLine("The number of reload engine services: " + reloadEngines.Length);
         }
         catch(Exception e)
         {
             Console.WriteLine("An error occured: " + e.Message);
         }
         // wait for user to press any key
         Console.ReadLine();
     }
}
See Also