GetLicenseFile
Last updated
<?xml version='1.0' encoding='UTF-8'?>
<QuickLicenseManager>
<result>Success</result>
</QuickLicenseManager><?xml version='1.0' encoding='UTF-8'?>
<QuickLicenseManager>
<error>Details about the error</error>
</QuickLicenseManagerLicenseValidator lv = new LicenseValidator();
string computerID = "PCID123";
string licenseFileXml = string.Empty;
if (lv.QlmLicenseObject.GetLicenseFile(string.Empty, "AXDJ0T0Z00AEIX8F8ZHE3J1G8P", "", computerID, out licenseFileXml))
{
ILicenseInfo li = new LicenseInfo();
// Parse the xml and populate the LicenseInfo object
li.LoadLicenseXml (licenseFileXml, computerID);
// You can now access the data from the LicenseInfo object
DateTime maintenancePlan = li.MaintenanceRenewalDate;
}' Assuming lv is an instance of the LicenseValidator class
If lv.LicenseObject.GetLicenseFile("", lv.ActivationKey, "", "", xmlFile) Then
Dim li As ILicenseInfo
Set li = lv.GetLicenseInfo()
Call li.LoadLicenseXml(xmlFile, "")
'You can now access the data from the LicenseInfo object
Dim fullName as String
fullName = li.FullName
End If