(C#) Transition from MailMan.GetUidls to MailMan.FetchUidls
Provides instructions for replacing deprecated GetUidls method calls with FetchUidls. Note: This example requires Chilkat v11.0.0 or greater.
Chilkat.MailMan mailman = new Chilkat.MailMan();
// ...
// ...
// ------------------------------------------------------------------------
// The GetUidls method is deprecated:
Chilkat.StringArray sa = mailman.GetUidls();
if (mailman.LastMethodSuccess == false) {
Debug.WriteLine(mailman.LastErrorText);
return;
}
// ...
// ...
// ------------------------------------------------------------------------
// Do the equivalent using FetchUidls.
// Your application creates a new, empty StringTable object which is passed
// in the last argument and filled upon success.
Chilkat.StringTable st = new Chilkat.StringTable();
bool success = mailman.FetchUidls(st);
if (success == false) {
Debug.WriteLine(mailman.LastErrorText);
return;
}
|