(C#) 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.
Chilkat.MailMan mailman = new Chilkat.MailMan();
// ...
// ...
Chilkat.StringArray saUidls = new Chilkat.StringArray();
saUidls.Append("aaa");
saUidls.Append("bbb");
saUidls.Append("ccc");
Chilkat.StringTable stUidls = new Chilkat.StringTable();
stUidls.Append("aaa");
stUidls.Append("bbb");
stUidls.Append("ccc");
// ------------------------------------------------------------------------
// The FetchMultipleMime method is deprecated:
Chilkat.StringArray saMime = mailman.FetchMultipleMime(saUidls);
if (mailman.LastMethodSuccess == false) {
Debug.WriteLine(mailman.LastErrorText);
return;
}
// ...
// ...
// ------------------------------------------------------------------------
// Do the equivalent using FetchMimeBd.
bool success = false;
Chilkat.BinData bdMime = new Chilkat.BinData();
int numUidls = stUidls.Count;
int i = 0;
while (i < numUidls) {
success = mailman.FetchMimeBd(stUidls.StringAt(i),bdMime);
// ...
// ...
i = i + 1;
}
|