Click or drag to resize
MimeKit

HttpProxyClient(String, Int32) Constructor

Initializes a new instance of the HttpProxyClient class.

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

Parameters

host  String
The host name of the proxy server.
port  Int32
The proxy server port.
Exceptions
ExceptionCondition
ArgumentNullExceptionhost is 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 HttpProxyClient class.
See Also