Click or drag to resize

ImapClient Constructor (String, Int32, ConnectionSecurity, RemoteCertificateValidationCallback)

Initializes new instance of ImapClient class with specified host address and port, ConnectionSecurity option and host certificate validation delegate method.

Namespace:  GemBox.Email.Imap
Assembly:  GemBox.Email (in GemBox.Email.dll) Version: 11.3.30.1034
Syntax
public ImapClient(
	string host,
	int port,
	ConnectionSecurity security,
	RemoteCertificateValidationCallback certificateValidationCallback
)

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