(VB.NET) 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.
Dim mailman As New Chilkat.MailMan
' ...
' ...
Dim xmlBundleStr As String = "..."
' ------------------------------------------------------------------------
' The LoadXmlString method is deprecated:
Dim bundleObj As Chilkat.EmailBundle = mailman.LoadXmlString(xmlBundleStr)
If (mailman.LastMethodSuccess = False) Then
Debug.WriteLine(mailman.LastErrorText)
Exit Sub
End If
' ...
' ...
' ------------------------------------------------------------------------
' Do the equivalent using EmailBundle.LoadXmlString.
Dim bundle As New Chilkat.EmailBundle
Dim success As Boolean = bundle.LoadXmlString(xmlBundleStr)
If (success = False) Then
Debug.WriteLine(bundle.LastErrorText)
Exit Sub
End If
|