(VB.NET) Transition from MailMan.FetchMultipleMime to MailMan.FetchMimeBd
Provides instructions for replacing deprecated FetchMultipleMime method calls with FetchMimeBd. Note: This example requires Chilkat v11.0.0 or greater.
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.
Dim success As Boolean = 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
|