Sample code for 30+ languages & platforms
VB.NET Requires Chilkat v11.0.0+

Transition from Email.GetLinkedDomains to Email.LinkedDomains

Provides instructions for replacing deprecated GetLinkedDomains method calls with LinkedDomains.

Chilkat VB.NET Downloads

VB.NET
Dim success As Boolean = False

Dim email As New Chilkat.Email

'  ...
'  ...

'  ------------------------------------------------------------------------
'  The GetLinkedDomains method is deprecated:

Dim sa As Chilkat.StringArray = email.GetLinkedDomains()
If (email.LastMethodSuccess = False) Then
    Debug.WriteLine(email.LastErrorText)
    Exit Sub
End If


'  ...
'  ...



'  ------------------------------------------------------------------------
'  Do the equivalent using LinkedDomains.
'  Your application creates a new, empty StringTable object which is passed 
'  in the last argument and filled upon success.

Dim st As New Chilkat.StringTable
success = email.LinkedDomains(st)
If (success = False) Then
    Debug.WriteLine(email.LastErrorText)
    Exit Sub
End If