Releases a license key on the License Server.

void ReleaseLicense (string webServiceUrl, 
                     string activationKey, 
                     string computerID, 
                     out string response)


webServiceUrlstringURL to the QLM License Server
activationKeystringthe license key to deactivate
computerIDstringthe unique computer identifier to deactivate
responseout stringXML fragment containing the result of the call. The Xml fragment schema is as follows:

Response XML format

<?xml version='1.0' encoding='UTF-8'?>
<result>ActivationKey A162DCF05C30D371A2D0E0461040A0 has been released.</result>

Example error response

<?xml version='1.0' encoding='UTF-8'?>
<error>Details about the error</error>


You can control how many times a user can release a license with the following Server Properties:

  • maxReleaseCount: The maximum number of times an end-user can release a license.
  • maxReleasePeriodInDays: When counting the number of released licenses, only count the ones that have been released in the past "maxReleasePeriodInDays" days. For example, if you want to allow a user to release a license twice per month, set maxReleasePeriodInDays to 30 and maxReleaseCount to 2.
  • maxReleasePerClient: When counting the number of released licenses for a given activation key, count only the ones associated with a specific client. By default, QLM counts all the released licenses for a given activation regardless of the client system.

By default, you must set the CommunicationEncryptionKey before calling ReleaseLicense. The server property releaseLicenseUseAdminEncryptionKey can be used to configure the server to require the AdminEncryption to be set in order to call ReleaseLicense.

Use ParseResults to interpret the results of the call and load the returned data into an ILicenseInfo object.

ILicenseInfo li = new LicenseInfo();
string message = string.Empty;
if (lv.QlmLicenseObject.ParseResults(response, ref li, ref message))
  // The operation  was successful	
  // The operation failed