RenewLicenseCode
This function extends the expiration period of the license code by the renewal code.

Syntax
public static ClientRenewalResponseCode RenewLicenseCode(string renewalCode, string licenseCode)

Parameters
String licenseCode - Buffer for the license code.
String renewalCode - Buffer for the renewal code.

Return value
Returns status of the software renewal via ClientRenewalResponseCode enum.

Requirements
File: ItpLibraryNetWrapper.cs
Namespace: ItpLibraryNetClient;

Example
private void btnRenew_Click(object sender, EventArgs e)
{
    string licenseCode = tbLicenseCode.Text.Trim();
    string renewalCode = tbRenewalCode.Text.Trim();
 
    if (string.IsNullOrEmpty(licenseCode))
    {
        MessageBox.Show("Please specify renewal code and license code you plan to renew");
        return;
    }
 
    ClientRenewalResponseCode responseCode = ItpLibraryNetWrapper.RenewLicenseCode(renewalCode, licenseCode);
    MessageBox.Show(responseCode.ToString(), Text);
 
    InitItpControls();
}
Copyright 2006 - 2024 by IntelliProtector - Software Protection and Licensing Services