ImapClient Constructor (String, Int32, ConnectionSecurity, RemoteCertificateValidationCallback) |
Initializes new instance of
ImapClient class with specified host address, port number,
ConnectionSecurity option and host certificate validation delegate method.
Namespace:
GemBox.Email.Imap
Assembly:
GemBox.Email (in GemBox.Email.dll) Version: 15.0.35.1026
Syntax public ImapClient(
string host,
int port,
ConnectionSecurity security,
RemoteCertificateValidationCallback certificateValidationCallback
)
Public Sub New (
host As String,
port As Integer,
security As ConnectionSecurity,
certificateValidationCallback As RemoteCertificateValidationCallback
)
Parameters
- host
- Type: SystemString
The address of the server. - port
- Type: SystemInt32
An integer value between 1 and 65535 indicating remote server IP port. Value 0 indicates that client will use default port value for specified connection security level. - security
- Type: GemBox.Email.SecurityConnectionSecurity
A constant that determines connection security level. - certificateValidationCallback
- Type: System.Net.SecurityRemoteCertificateValidationCallback
A delegate method for validating server SSL certificate on successful connection.
See Also