(VB.NET) Transition from Email.FindIssuer to Cert.GetIssuer
Provides instructions for replacing deprecated FindIssuer method calls with Cert.GetIssuer. Note: This example requires Chilkat v11.0.0 or greater.
Dim email As New Chilkat.Email
Dim cert As New Chilkat.Cert
' ...
' ...
' ------------------------------------------------------------------------
' The FindIssuer method is deprecated:
Dim certObj As Chilkat.Cert = email.FindIssuer(cert)
If (email.LastMethodSuccess = False) Then
Debug.WriteLine(email.LastErrorText)
Exit Sub
End If
' ...
' ...
' ------------------------------------------------------------------------
' Do the equivalent using Cert.GetIssuer.
' Your application creates a new, empty Cert object which is passed
' in the last argument and filled upon success.
Dim issuerCert As New Chilkat.Cert
Dim success As Boolean = cert.GetIssuer(issuerCert)
If (success = False) Then
Debug.WriteLine(email.LastErrorText)
Exit Sub
End If
|