This function registers the software by the registration response certificate.
Syntax
public static ClientRegistrationResponseCode UseRegistrationResponseCertificate(string filePathName)
Parameters
string filePathName - response certificate path.
Return value
Returns status of operation via ClientRegistrationResponseCode enum.
Requirements
File: ItpLibraryNetWrapper.cs
Namespace: ItpLibraryNetClient;
Example
private
void
btnUseCertificate_Click(
object
sender, EventArgs e)
{
using
(OpenFileDialog openFileDialog = FileDialogs.CreateOpenFileDialog())
{
if
(openFileDialog.ShowDialog() != DialogResult.OK)
return
;
ClientRegistrationResponseCode responseCode = ItpLibraryNetWrapper.UseRegistrationResponseCertificate(openFileDialog.FileName);
MessageBox.Show(responseCode.ToString(), Text);
}
UpdateRegistrationStatus();
}