SetProductProperties
Description
bool SetProductProperties (string webServiceUrl, string activationKey,
string propertiesXml, out string errorMessage)Parameters
Parameter
Type
Description
Return
Type
Description
Example
LicenseValidator lv = new LicenseValidator();
string props = lv.QlmLicenseObject.GetProductProperties(string.Empty, "AXDJ0T0Z00AEIX8F8ZHE3J1G8P", out response);
QlmProductProperties pps = new QlmProductProperties();
pps.Deserialize(props);
foreach (QlmProductProperty pp in pps.Properties)
{
Console.WriteLine(String.Format("Property: {0}, Value: {1}", pp.ToString(), pp.PropValue));
if ((pp.Name == "my_name") && (pp.Category == "my_category"))
{
pp.PropValue = 1;
}
}
string xml = pps.Serialize();
string returnMessage;
lv.QlmLicenseObject.AdminEncryptionKey = "{14f3b542-8547-414f-a42b-1d571bd733d4}";
if (lv.QlmLicenseObject.SetProductProperties("", activationKey, xml, out returnMessage) == false)
{
// Check the returnMessage
}Last updated