Represents a proxy



Fields

Name

string

Represents proxy name

Host

string

Proxy address 

Port

int

Proxy port

Type

ProxyType

Proxy type, default is HTTP

Username

string

Username, empty for anonymous

Password

string

Password, empty for anonymous



Examples

// Create a proxy server

Proxy demo_proxy = new Proxy {Name = "demo", Host = "10.0.0.3",Port = 10809, Type = ProxyType.HTTP };

Option.Setting.ProxyServers.Add(demo_proxy);






See Also