ProxySocket(AddressFamily, SocketType, ProtocolType, String, String) Constructor
|
Initializes a new instance of the ProxySocket class.
Namespace: mtapi.mt5Assembly: mt5api (in mt5api.dll) Version: 5.3677.1.2
Syntax public ProxySocket(
AddressFamily addressFamily,
SocketType socketType,
ProtocolType protocolType,
string proxyUsername,
string proxyPassword
)
Public Sub New (
addressFamily As AddressFamily,
socketType As SocketType,
protocolType As ProtocolType,
proxyUsername As String,
proxyPassword As String
)
public:
ProxySocket(
AddressFamily addressFamily,
SocketType socketType,
ProtocolType protocolType,
String^ proxyUsername,
String^ proxyPassword
)
new :
addressFamily : AddressFamily *
socketType : SocketType *
protocolType : ProtocolType *
proxyUsername : string *
proxyPassword : string -> ProxySocket
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 Exception | Condition |
---|
SocketException | The combination of addressFamily, socketType, and protocolType results in an invalid socket. |
ArgumentNullException | proxyUsername -or- proxyPassword is null. |
See Also