Sample code for 30+ languages & platforms
C#

Transition from Email.FindIssuer to Cert.GetIssuer

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

Chilkat C# Downloads

C#
bool success = false;

Chilkat.Email email = new Chilkat.Email();
Chilkat.Cert cert = new Chilkat.Cert();

// ...
// ...

// ------------------------------------------------------------------------
// The FindIssuer method is deprecated:

Chilkat.Cert certObj = email.FindIssuer(cert);
if (email.LastMethodSuccess == false) {
    Debug.WriteLine(email.LastErrorText);
    return;
}

// ...
// ...

// ------------------------------------------------------------------------
// 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.

Chilkat.Cert issuerCert = new Chilkat.Cert();
success = cert.GetIssuer(issuerCert);
if (success == false) {
    Debug.WriteLine(email.LastErrorText);
    return;
}