(VB.NET) Transition from Email.GetLinkedDomains to Email.LinkedDomains
Provides instructions for replacing deprecated GetLinkedDomains method calls with LinkedDomains. Note: This example requires Chilkat v11.0.0 or greater.
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
Dim success As Boolean = email.LinkedDomains(st)
If (success = False) Then
Debug.WriteLine(email.LastErrorText)
Exit Sub
End If
|