How to read product properties from a license file
string licenseFileXml;
string computerID = Environment.MachineName;
if (lv.QlmLicenseObject.GetLicenseFile(string.Empty, lv.ActivationKey, string.Empty,
computerID, out licenseFileXml))
{
ILicenseInfo li = new LicenseInfo();
// Parse the xml and populate the LicenseInfo object
li.LoadLicenseXml(licenseFileXml, computerID);
QlmProductProperties pps = new QlmProductProperties();
pps.Deserialize(li.ProductProperties);
foreach (QlmProductProperty pp in pps.Properties)
{
Console.WriteLine(String.Format("Property: {0}, Value: {1}",
pp.ToString(), pp.PropValue));
}
}Last updated