Sample code for 30+ languages & platforms
VB.NET

Transition from MailMan.LoadXmlString to EmailBundle.LoadXmlString

Provides instructions for replacing deprecated LoadXmlString method calls with EmailBundle.LoadXmlString.

Chilkat VB.NET Downloads

VB.NET
Dim success As Boolean = False

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
success = bundle.LoadXmlString(xmlBundleStr)
If (success = False) Then
    Debug.WriteLine(bundle.LastErrorText)
    Exit Sub
End If