This function extends the expiration period of the license code by the renewal code.
Syntax
Public Shared Function RenewLicenseCode(renewalCode As String, licenseCode As String) As ClientRenewalResponseCode
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.vb
Namespace: ItpLibraryNetClient;
Example
Private
Sub
btnRenew_Click(sender
As
Object
, e
As
EventArgs)
Handles
btnRenew.Click
Dim
licenseCode
As
String
= tbLicenseCode.Text.Trim()
Dim
renewalCode
As
String
= tbRenewalCode.Text.Trim()
If
String
.IsNullOrEmpty(licenseCode)
Then
MessageBox.Show(
"Please specify renewal code and license code you plan to renew"
)
Return
End
If
Dim
responseCode
As
ClientRenewalResponseCode = ItpLibraryNetWrapper.RenewLicenseCode(renewalCode, licenseCode)
MessageBox.Show(responseCode.ToString(), Text)
End
Sub