Initializes a new instance of the ProxySocket class.

Namespace: Jscape.Util.Proxy
Assembly: Jscape.Email (in Jscape.Email.dll) Version: 2.4.5.0

Syntax

C#
public ProxySocket(
	AddressFamily addressFamily,
	SocketType socketType,
	ProtocolType protocolType,
	string proxyUsername,
	string proxyPassword
)
Visual Basic
Public Sub New ( _
	addressFamily As AddressFamily, _
	socketType As SocketType, _
	protocolType As ProtocolType, _
	proxyUsername As String, _
	proxyPassword As String _
)
Visual C++
public:
ProxySocket(
	AddressFamily addressFamily, 
	SocketType socketType, 
	ProtocolType protocolType, 
	String^ proxyUsername, 
	String^ proxyPassword
)

Parameters

addressFamily
Type: System.Net.Sockets..::..AddressFamily
One of the AddressFamily values.
socketType
Type: System.Net.Sockets..::..SocketType
One of the SocketType values.
protocolType
Type: System.Net.Sockets..::..ProtocolType
One of the ProtocolType values.
proxyUsername
Type: System..::..String
The username to use when authenticating with the proxy server.
proxyPassword
Type: System..::..String
The password to use when authenticating with the proxy server.

Exceptions

ExceptionCondition
System.Net.Sockets..::..SocketExceptionThe combination of addressFamily, socketType, and protocolType results in an invalid socket.
System..::..ArgumentNullExceptionproxyUsername -or- proxyPassword is null.

See Also