My code snippet is as below.
Private imap As ImapClient
Private _messages As List(Of Message)
Private Function Logintoserver() As Boolean
Error 1 'Public Function Search(path As String, makeProcess As Boolean) As ImapX.Collections.MessageCollection' is obsolete: 'This Search overload is obsolete, please use another instead'.
Please help.
Private imap As ImapClient
Private _messages As List(Of Message)
Private Function Logintoserver() As Boolean
imap = New ImapClient(ServerName, True, False)
imap.Connect()
Return imap.Login(UserId, Password)
End Function
If Logintoserver() Then MsgBox("sucess")
Dim myinbox As Folder = imap.Folders.Inbox
_messages = myinbox.Search("ALL", True)
Else
MsgBox("failed")
End If
Search is giving error.Error 1 'Public Function Search(path As String, makeProcess As Boolean) As ImapX.Collections.MessageCollection' is obsolete: 'This Search overload is obsolete, please use another instead'.
Please help.