(Xojo Plugin) 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
certObj = email.FindIssuer(cert)
If (email.LastMethodSuccess = False) Then
System.DebugLog(email.LastErrorText)
Return
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
success = cert.GetIssuer(issuerCert)
If (success = False) Then
System.DebugLog(email.LastErrorText)
Return
End If
|