Language

ProxyInfo.BuildDirectProxy Method

Definition

Overloads

Name Description
BuildDirectProxy(String, Int32)

Constructs a ProxyInfo object that points at a Direct proxy on the specified host and port.

BuildDirectProxy(String, Int32, IList<String>)

Constructs a ProxyInfo object that points at a Direct proxy on the specified host and port.

BuildDirectProxy(String, Int32)

Constructs a ProxyInfo object that points at a Direct proxy on the specified host and port.

[Android.Runtime.Register("buildDirectProxy", "(Ljava/lang/String;I)Landroid/net/ProxyInfo;", "")]
public static Android.Net.ProxyInfo? BuildDirectProxy(string? host, int port);
[<Android.Runtime.Register("buildDirectProxy", "(Ljava/lang/String;I)Landroid/net/ProxyInfo;", "")>]
static member BuildDirectProxy : string * int -> Android.Net.ProxyInfo

Parameters

host
String

The host name of the HTTP proxy.

port
Int32

The TCP port of the HTTP proxy.

Returns

A new direct-proxy configuration for the supplied host and port.

Attributes

Remarks

Java documentation for android.net.ProxyInfo.buildDirectProxy(java.lang.String, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

BuildDirectProxy(String, Int32, IList<String>)

Constructs a ProxyInfo object that points at a Direct proxy on the specified host and port.

[Android.Runtime.Register("buildDirectProxy", "(Ljava/lang/String;ILjava/util/List;)Landroid/net/ProxyInfo;", "")]
public static Android.Net.ProxyInfo? BuildDirectProxy(string? host, int port, System.Collections.Generic.IList<string>? exclList);
[<Android.Runtime.Register("buildDirectProxy", "(Ljava/lang/String;ILjava/util/List;)Landroid/net/ProxyInfo;", "")>]
static member BuildDirectProxy : string * int * System.Collections.Generic.IList<string> -> Android.Net.ProxyInfo

Parameters

host
String

The host name of the HTTP proxy.

port
Int32

The TCP port of the HTTP proxy.

exclList
IList<String>

Hosts to exclude using the proxy on connections for. These hosts can use wildcards such as *.example.com.

Returns

A new direct-proxy configuration for the supplied host and port.

Attributes

Remarks

Constructs a ProxyInfo object that points at a Direct proxy on the specified host and port.

The proxy will not be used to access any host in exclusion list, exclList.

Java documentation for android.net.ProxyInfo.buildDirectProxy(java.lang.String, int, java.util.List<java.lang.String>).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to