![]() |
Chilkat HOME Android™ AutoIt C C# C++ Chilkat2-Python CkPython Classic ASP DataFlex Delphi DLL Go Java Node.js Objective-C PHP Extension Perl PowerBuilder PowerShell PureBasic Ruby SQL Server Swift Tcl Unicode C Unicode C++ VB.NET VBScript Visual Basic 6.0 Visual FoxPro Xojo Plugin
(VB.NET) Transition from Imap.FetchBundleAsMime to Imap.FetchSingleBdProvides instructions for replacing deprecated FetchBundleAsMime method calls with FetchSingleBd. Note: This example requires Chilkat v11.0.0 or greater.
Dim imap As New Chilkat.Imap ' ... ' ... Dim mset As New Chilkat.MessageSet Dim success As Boolean = imap.QueryMbx("FROM joe@example.com",True,mset) ' ... ' ... ' ------------------------------------------------------------------------ ' The FetchBundleAsMime method is deprecated: Dim saObj As Chilkat.StringArray = imap.FetchBundleAsMime(mset) If (imap.LastMethodSuccess = False) Then Debug.WriteLine(imap.LastErrorText) Exit Sub End If ' ... ' ... ' ------------------------------------------------------------------------ ' Do the equivalent using FetchSingleBd. imap.AutoDownloadAttachments = True Dim bdMime As New Chilkat.BinData Dim bUid As Boolean = mset.HasUids Dim numEmails As Integer = mset.Count Dim i As Integer = 0 While i < numEmails success = imap.FetchSingleBd(mset.GetId(i),bUid,bdMime) ' ... ' ... i = i + 1 End While |
© 2000-2025 Chilkat Software, Inc. All Rights Reserved.