Click or drag to resize

SystemInfoOperationGetLicensingInfo Method

Retrieves licensing information.

Namespace:  Xcalibur.WMI.SystemInformation
Assembly:  Xcalibur.WMI (in Xcalibur.WMI.dll) Version: 3.0.0.0 (3.0.1.0)
Syntax
public static string GetLicensingInfo(
	ManagementScope managementScope
)

Parameters

managementScope
Type: System.ManagementManagementScope
The management scope.

Return Value

Type: String
Examples
C#
 1// Main
 2private static void Main()
 3{
 4    // Make a connection to the local machine
 5    const string computer = ".";
 6    var managementScope = new ManagementScope($@"\\{computer}\root\cimv2", new ConnectionOptions
 7    {
 8        Impersonation = ImpersonationLevel.Impersonate,
 9        Authentication = AuthenticationLevel.Connect
10    });
11    managementScope.Connect();
12
13    // Fetch data
14    var info = SystemInfoOperation.GetLicensingInfo(managementScope);
15
16    // Print results
17    Console.WriteLine($"{info}");
18
19    // Read
20    Console.Read();
21}
22
23/* Results: 
24 * 
25 * Licensed
26 * 
27 */
See Also