Dart.Mail Namespace > Imap Class : GetDefaultPort Method |
Public Shared Function GetDefaultPort( _ ByVal session As MailSession _ ) As Integer
Dim session As MailSession Dim value As Integer value = Imap.GetDefaultPort(session)
public static int GetDefaultPort( MailSession session )
public: static int GetDefaultPort( MailSession* session )
public: static int GetDefaultPort( MailSession^ session )
If MailSecurity.Encrypt == Encrypt.Implicit, port 993 is returned (the well-known secure IMAP4 server port). Otherwise, 143 is returned (the well-known IMAP4 server port).
Used to initialize Session.RemoteEndPoint.Port if not initialized by the user.