Return Value
Type: System.String
Contains a string of the form "ip:port:isSocks"
Type: System.String
Contains a string of the form "ip:port:isSocks"
// get proxy string proxy = instance.GetProxy(); // if instance has proxy if (proxy != "noproxy") { // split string string[] args = proxy.Split(':'); // first is id string ip = args[0]; // second is port int port = Convert.ToInt32(args[1]); // third is socks or not bool s = Convert.ToBoolean(args[2]); }
// get proxy $proxy = $instance->GetProxy(); // if instance has proxy if ($proxy != "noproxy") { // split string $args = $proxy->Split(':'); // first is id $ip = $args[0]; // second is port $port = System\Convert::ToInt32($args[1]); // third is socks or not $s = System\Convert::ToBoolean($args[2]); }
Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.