This function renews the license code by the renewal response certificate.
Syntax
Public Shared Function UseRenewalResponseCertificate(filePathName As String) As ClientRenewalResponseCode
Parameters
string filePathName - response certificate path.
Return value
Returns status of operation via ClientRenewalResponseCode enum.
Requirements
File: ItpLibraryNetWrapper.vb
Namespace: ItpLibraryNetClient;
Example
Private
Sub
btnUseCertificate_Click(sender
As
Object
, e
As
EventArgs)
Handles
btnUseCertificate.Click
Using openFileDialog
As
OpenFileDialog = FileDialogs.CreateOpenFileDialog()
If
openFileDialog.ShowDialog() <> DialogResult.OK
Then
Return
End
If
Dim
responseCode
As
ClientRenewalResponseCode = ItpLibraryNetWrapper.UseRenewalResponseCertificate(openFileDialog.FileName)
_responseCode = responseCode
MessageBox.Show(responseCode.ToString(), Text)
End
Using
UpdateRenewalStatus()
End
Sub