This function is designed for registration process by e-mail. It creates registration request certificate (into filePathName) which should be sent into our automatic e-mail processing address. The service sends registration response certificate in reply
Syntax
Public Shared Function CreateRegistrationRequestCertificate(filePathName As String, licenseCode As String) As ClientRegistrationRequestResponseCode
Parameters
String filePathName - file name where request certificate will be stored
String licenseCode - license code for registration process
Return value
Returns the status of operation via ClientRegistrationRequestResponseCode enum.
Requirements
File: ItpLibraryNetWrapper.vb
Namespace: ItpLibraryNetClient;
Example
Private Sub btnSaveCertificate_Click(sender As Object, e As EventArgs) Handles btnSaveCertificate.Click
Dim licenseCode As String = tbLicenseCode.Text.Trim()
If String.IsNullOrEmpty(licenseCode) Then
MessageBox.Show("Please specify a license code", "License is empty")
Return
End If
Using saveFileDialog As SaveFileDialog = FileDialogs.CreateSaveFileDialog(_certificateName)
If saveFileDialog.ShowDialog() <> DialogResult.OK Then
Return
End If
Dim responseCode As ClientRegistrationRequestResponseCode = ItpLibraryNetWrapper.CreateRegistrationRequestCertificate(saveFileDialog.FileName, licenseCode)
MessageBox.Show(responseCode.ToString(), Text)
End Using
End Sub