ImapClient

ImapClient constructor (1 of 19)

Initializes a new instance of the ImapClient class

public ImapClient()

See Also


ImapClient constructor (2 of 19)

Initializes a new instance of the ImapClient class

public ImapClient(string host)
Parameter Type Description
host String The host name

See Also


ImapClient constructor (3 of 19)

Initializes a new instance of the ImapClient class

public ImapClient(string host, SecurityOptions securityOptions)
Parameter Type Description
host String The host name
securityOptions SecurityOptions Security mode for a mail client

See Also


ImapClient constructor (4 of 19)

Initializes a new instance of the ImapClient class

public ImapClient(string host, int port)
Parameter Type Description
host String The host name
port Int32 The port number

See Also


ImapClient constructor (5 of 19)

Initializes a new instance of the ImapClient class

public ImapClient(string host, int port, SecurityOptions securityOptions)
Parameter Type Description
host String The host name
port Int32 The port number
securityOptions SecurityOptions Security mode for a mail client

See Also


ImapClient constructor (6 of 19)

Initializes a new instance of the ImapClient class

public ImapClient(string host, string username, string password)
Parameter Type Description
host String The host name
username String The user name
password String The password

See Also


ImapClient constructor (7 of 19)

Initializes a new instance of the ImapClient class

public ImapClient(string host, string username, string password, SecurityOptions securityOptions)
Parameter Type Description
host String The host name
username String The user name
password String The password
securityOptions SecurityOptions Security mode for a mail client

See Also


ImapClient constructor (8 of 19)

Initializes a new instance of the ImapClient class

public ImapClient(string host, int port, string username, string password)
Parameter Type Description
host String The host name
port Int32 The port number
username String The user name
password String The password

See Also


ImapClient constructor (9 of 19)

Initializes a new instance of the ImapClient class

public ImapClient(string host, int port, string username, string password, 
    SecurityOptions securityOptions)
Parameter Type Description
host String The host name
port Int32 The port number
username String The user name
password String The password
securityOptions SecurityOptions Security mode for a mail client

See Also


ImapClient constructor (10 of 19)

Initializes a new instance of the ImapClient class

public ImapClient(string host, int port, string username, string password, 
    RemoteCertificateValidationCallback userCertificateValidationCallback)
Parameter Type Description
host String The host name
port Int32 The portnumber
username String The user name
password String The password
userCertificateValidationCallback RemoteCertificateValidationCallback System.Net.Security.RemoteCertificateValidationCallback

See Also


ImapClient constructor (11 of 19)

Initializes a new instance of the ImapClient class

public ImapClient(string host, int port, string username, string password, 
    RemoteCertificateValidationCallback userCertificateValidationCallback, 
    SecurityOptions securityOptions)
Parameter Type Description
host String The host name
port Int32 The portnumber
username String The user name
password String The password
userCertificateValidationCallback RemoteCertificateValidationCallback System.Net.Security.RemoteCertificateValidationCallback
securityOptions SecurityOptions Security mode for a mail client

See Also


ImapClient constructor (12 of 19)

Initializes a new instance of the ImapClient class

public ImapClient(string host, string username, string authInfo, bool useOAuth)
Parameter Type Description
host String The host name
username String The user name
authInfo String The user password or XOAUTH2 access token
useOAuth Boolean Defines whether SASL XOAUTH2 mechanism is used to login to the server

See Also


ImapClient constructor (13 of 19)

Initializes a new instance of the ImapClient class

public ImapClient(string host, string username, string authInfo, bool useOAuth, 
    SecurityOptions securityOptions)
Parameter Type Description
host String The host name
username String The user name
authInfo String The user password or XOAUTH2 access token
useOAuth Boolean Defines whether SASL XOAUTH2 mechanism is used to login to the server
securityOptions SecurityOptions Security mode for a mail client

See Also


ImapClient constructor (14 of 19)

Initializes a new instance of the ImapClient class

public ImapClient(string host, int port, string username, string authInfo, bool useOAuth)
Parameter Type Description
host String The host name
port Int32 The port number
username String The user name
authInfo String The user password or XOAUTH2 access token
useOAuth Boolean Defines whether SASL XOAUTH2 mechanism is used to login to the server

See Also


ImapClient constructor (15 of 19)

Initializes a new instance of the ImapClient class

public ImapClient(string host, int port, string username, string authInfo, bool useOAuth, 
    SecurityOptions securityOptions)
Parameter Type Description
host String The host name
port Int32 The port number
username String The user name
authInfo String The user password or XOAUTH2 access token
useOAuth Boolean Defines whether SASL XOAUTH2 mechanism is used to login to the server
securityOptions SecurityOptions Security mode for a mail client

See Also


ImapClient constructor (16 of 19)

Initializes a new instance of the ImapClient class

public ImapClient(string host, string username, ITokenProvider tokenProvider)
Parameter Type Description
host String The host name
username String The user name
tokenProvider ITokenProvider TokenProvider allowing to retrieve access token.

See Also


ImapClient constructor (17 of 19)

Initializes a new instance of the ImapClient class

public ImapClient(string host, string username, ITokenProvider tokenProvider, 
    SecurityOptions securityOptions)
Parameter Type Description
host String The host name
username String The user name
tokenProvider ITokenProvider TokenProvider allowing to retrieve access token.
securityOptions SecurityOptions Security mode for a mail client

See Also


ImapClient constructor (18 of 19)

Initializes a new instance of the ImapClient class

public ImapClient(string host, int port, string username, ITokenProvider tokenProvider)
Parameter Type Description
host String The host name
port Int32 The port number
username String The user name
tokenProvider ITokenProvider TokenProvider allowing to retrieve access token.

See Also


ImapClient constructor (19 of 19)

Initializes a new instance of the ImapClient class

public ImapClient(string host, int port, string username, ITokenProvider tokenProvider, 
    SecurityOptions securityOptions)
Parameter Type Description
host String The host name
port Int32 The port number
username String The user name
tokenProvider ITokenProvider TokenProvider allowing to retrieve access token.
securityOptions SecurityOptions Security mode for a mail client

See Also