共用方式為


NSStream.SocksOptions 屬性

定義

使用 SOCKS Proxy 伺服器的設定。

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 */
};

適用於