(C#) Transition from MailMan.LoadXmlString to EmailBundle.LoadXmlString
Provides instructions for replacing deprecated LoadXmlString method calls with EmailBundle.LoadXmlString. Note: This example requires Chilkat v11.0.0 or greater.
Chilkat.MailMan mailman = new Chilkat.MailMan();
// ...
// ...
string xmlBundleStr = "...";
// ------------------------------------------------------------------------
// The LoadXmlString method is deprecated:
Chilkat.EmailBundle bundleObj = mailman.LoadXmlString(xmlBundleStr);
if (mailman.LastMethodSuccess == false) {
Debug.WriteLine(mailman.LastErrorText);
return;
}
// ...
// ...
// ------------------------------------------------------------------------
// Do the equivalent using EmailBundle.LoadXmlString.
Chilkat.EmailBundle bundle = new Chilkat.EmailBundle();
bool success = bundle.LoadXmlString(xmlBundleStr);
if (success == false) {
Debug.WriteLine(bundle.LastErrorText);
return;
}
|