Click or drag to resize
MimeKit

HttpsProxyClient(String, Int32, NetworkCredential) Constructor

Initializes a new instance of the HttpsProxyClient class.

Namespace: MailKit.Net.Proxy
Assembly: MailKit (in MailKit.dll) Version: 4.7.1
Syntax
C#
public HttpsProxyClient(
	string host,
	int port,
	NetworkCredential credentials
)

Parameters

host  String
The host name of the proxy server.
port  Int32
The proxy server port.
credentials  NetworkCredential
The credentials to use to authenticate with the proxy server.
Exceptions
ExceptionCondition
ArgumentNullException

host is null.

-or-

credentialsis null.

ArgumentOutOfRangeExceptionport is not between 1 and 65535.
ArgumentException

The host is a zero-length string.

-or-

The length of host is greater than 255 characters.

Remarks
Initializes a new instance of the HttpsProxyClient class.
See Also