How to read Product Properties from a data set
string dataSet = string.Empty;
string response;
lv.QlmLicenseObject.GetDataSet(string.Empty, "SubscriptionExpiryDate > '2019-08-20'", ref dataSet, out response);
DataSet ds = new DataSet("NewDataSet");
XmlReader reader = new XmlTextReader(dataSet, XmlNodeType.Document, null);
if (!String.IsNullOrEmpty(dataSet))
{
ds.ReadXml(reader);
Β if (ds.Tables[0].Rows.Count > 0)
{
DataRowCollection drc = ds.Tables[0].Rows;
if (drc != null)
{
foreach (DataRow dr in drc)
{
string pp = dr["Properties"].ToString();
if (!String.IsNullOrEmpty(pp))
{
IQlmProductProperties pps = new QlmProductProperties(pp);
IQlmProductProperty prop = pps.GetProperty("category1", "property1");
if (prop != null)
{
string val = prop.PropValue.ToString();
Console.WriteLine(val);
}
}
}
}
}
}PreviousHow to recover from a corrupted xml configuration fileNextWhy does ReadKeys still return a key after calling DeleteKeys?
Last updated