API Reference

ReadProductPropertiesFile

Description

Reads a Product Properties file and validates its signature.

IQlmProductProperties ReadProductProperties (string productPropertiesFileName, 
                                             out string errorMessage)

Arguments

NameData TypeDescription
productPropertiesFileNamestringthe filename of the products properties file
errorMessagestringerror message if the operation failed.

Return

Data TypeDescription
IQlmProductPropertiesan object that contains a collection of IQlmProductProperty objects.

Remarks

This function can also read a license file that contains a ProductProperties section.

Example

IQlmProductProperties pps = license.ReadProductPropertiesFile ("pps.xml", out errorMessage)

foreach (QlmProductProperty pp in pps.Properties)
{
    Console.WriteLine(String.Format("Property: {0}, Value: {1}", pp.ToString(), pp.PropValue));
}