Sample code for 30+ languages & platforms
Xojo Plugin

Transition from Cert.GetCertChain to Cert.BuildCertChain

Provides instructions for replacing deprecated GetCertChain method calls with BuildCertChain.

Chilkat Xojo Plugin Downloads

Xojo Plugin
Dim success As Boolean
success = False

Dim cert As New Chilkat.Cert

// ------------------------------------------------------------------------
// The GetCertChain method is deprecated:

Dim certchainObj As Chilkat.CertChain
certchainObj = cert.GetCertChain()
If (cert.LastMethodSuccess = False) Then
    System.DebugLog(cert.LastErrorText)
    Return
End If

// ...
// ...

// ------------------------------------------------------------------------
// Do the equivalent using BuildCertChain.
// Your application creates a new, empty CertChain object which is passed 
// in the last argument and filled upon success.

Dim certchainOut As New Chilkat.CertChain
success = cert.BuildCertChain(certchainOut)
If (success = False) Then
    System.DebugLog(cert.LastErrorText)
    Return
End If