Sample code for 30+ languages & platforms
VB.NET

Transition from Email.FindIssuer to Cert.GetIssuer

Provides instructions for replacing deprecated FindIssuer method calls with Cert.GetIssuer.

Chilkat VB.NET Downloads

VB.NET
Dim success As Boolean = False

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
success = cert.GetIssuer(issuerCert)
If (success = False) Then
    Debug.WriteLine(email.LastErrorText)
    Exit Sub
End If