NSStream.SocksOptions 属性

定义

使用 SOCKS 代理服务器的设置。

public Foundation.NSStreamSocksOptions SocksOptions { get; set; }
member this.SocksOptions : Foundation.NSStreamSocksOptions with get, set

属性值

.

注解

myStream.SocksOptions = new NSStreamSocksOptions () {
    HostName = "socks.xamarin.com",
    HostPort = 12765,
    Username = settings.User,
    Passowrd = settings.Password,
    Version  = 5 /* SOCKS5 */
};

适用于