(C#) 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.
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();
bool success = cert.GetIssuer(issuerCert);
if (success == false) {
Debug.WriteLine(email.LastErrorText);
return;
}
|