Click or drag to resize

ProxySocket(AddressFamily, SocketType, ProtocolType, String, String) Constructor

Initializes a new instance of the ProxySocket class.

Namespace: mtapi.mt5
Assembly: mt5api (in mt5api.dll) Version: 5.3677.1.2
Syntax
public ProxySocket(
	AddressFamily addressFamily,
	SocketType socketType,
	ProtocolType protocolType,
	string proxyUsername,
	string proxyPassword
)

Parameters

addressFamily  AddressFamily
One of the AddressFamily values.
socketType  SocketType
One of the SocketType values.
protocolType  ProtocolType
One of the ProtocolType values.
proxyUsername  String
The username to use when authenticating with the proxy server.
proxyPassword  String
The password to use when authenticating with the proxy server.
Exceptions
ExceptionCondition
SocketExceptionThe combination of addressFamily, socketType, and protocolType results in an invalid socket.
ArgumentNullExceptionproxyUsername -or- proxyPassword is null.
See Also