| ImapConnectAsync Method (String, Int32) | 
 
Namespace: MailBee.ImapMailAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
 Syntax
Syntaxpublic Task<bool> ConnectAsync(
	string serverName,
	int port
)
Public Function ConnectAsync ( 
	serverName As String,
	port As Integer
) As Task(Of Boolean)
Parameters
- serverName
- Type: SystemString
 The name or IP address of the IMAP4 server.
- port
- Type: SystemInt32
 The port on which to communicate with the server. The standard IMAP4 port is 143. For TLS/SSL connections, dedicated port is 993
            (however, TLS/SSL connections via regular port are possible too, see SslMode and StartTls topics).
Return Value
Type: 
TaskBooleanA task that represents the asynchronous operation. The value of 
TResult parameter is 
true if the method succeeds; otherwise, 
false.
 Exceptions
Exceptions See Also
See Also