ProxyInfo.BuildDirectProxy Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
BuildDirectProxy(String, Int32) |
Constructs a |
BuildDirectProxy(String, Int32, IList<String>) |
Constructs a |
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
- port
- Int32
Returns
- Attributes
Remarks
Constructs a ProxyInfo
object that points at a Direct proxy on the specified host and port.
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
- port
- Int32
Hosts to exclude using the proxy on connections for. These hosts can use wildcards such as *.example.com.
Returns
- 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.
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.