Sample code for 30+ languages & platforms
VB.NET

Transition from MailMan.FetchMultipleMime to MailMan.FetchMimeBd

Provides instructions for replacing deprecated FetchMultipleMime method calls with FetchMimeBd.

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 FetchMultipleMime method is deprecated:

Dim saMime As Chilkat.StringArray = mailman.FetchMultipleMime(saUidls)
If (mailman.LastMethodSuccess = False) Then
    Debug.WriteLine(mailman.LastErrorText)
    Exit Sub
End If


' ...
' ...



' ------------------------------------------------------------------------
' Do the equivalent using FetchMimeBd.

success = False
Dim bdMime As New Chilkat.BinData
Dim numUidls As Integer = stUidls.Count
Dim i As Integer = 0
While i < numUidls
    success = mailman.FetchMimeBd(stUidls.StringAt(i),bdMime)
    ' ...
    ' ...

    i = i + 1
End While