Sample code for 30+ languages & platforms
VB.NET Requires Chilkat v11.0.0+

Transition from MailMan.FetchMultipleHeaders to MailMan.FetchUidlSet

Provides instructions for replacing deprecated FetchMultipleHeaders method calls with FetchUidlSet.

Chilkat VB.NET Downloads

VB.NET
Dim success As Boolean = False

Dim mailman As New Chilkat.MailMan

'  ...
'  ...

Dim saUidls As New Chilkat.StringArray
saUidls.Append("aaa")
saUidls.Append("bbb")
saUidls.Append("ccc")

Dim stUidls As New Chilkat.StringTable
stUidls.Append("aaa")
stUidls.Append("bbb")
stUidls.Append("ccc")

Dim numBodyLines As Integer = 5

'  ------------------------------------------------------------------------
'  The FetchMultipleHeaders method is deprecated:

Dim bundleObj As Chilkat.EmailBundle = mailman.FetchMultipleHeaders(saUidls,numBodyLines)
If (mailman.LastMethodSuccess = False) Then
    Debug.WriteLine(mailman.LastErrorText)
    Exit Sub
End If


'  ...
'  ...



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

Dim headersOnly As Boolean = True

Dim bundleOut As New Chilkat.EmailBundle
success = mailman.FetchUidlSet(stUidls,headersOnly,numBodyLines,bundleOut)
If (success = False) Then
    Debug.WriteLine(mailman.LastErrorText)
    Exit Sub
End If