Sample code for 30+ languages & platforms
VB.NET

Transition from MailMan.FetchMultiple to MailMan.FetchUidlSet

Provides instructions for replacing deprecated FetchMultiple 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")

' ------------------------------------------------------------------------
' The FetchMultiple method is deprecated:

Dim bundleObj As Chilkat.EmailBundle = mailman.FetchMultiple(saUidls)
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 = False
' Irrelevant because we are not downloading headers-only.
Dim numBodyLines As Integer = 0

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