Condividi tramite


Proxy.GetPort(Context) Method

Definition

Caution

deprecated

Return the proxy port set by the user.

[Android.Runtime.Register("getPort", "(Landroid/content/Context;)I", "")]
[System.Obsolete("deprecated")]
public static int GetPort (Android.Content.Context? ctx);
[<Android.Runtime.Register("getPort", "(Landroid/content/Context;)I", "")>]
[<System.Obsolete("deprecated")>]
static member GetPort : Android.Content.Context -> int

Parameters

ctx
Context

A Context used to get the settings for the proxy port.

Returns

The port number to use or -1 if no proxy is to be used.

Attributes

Remarks

Return the proxy port set by the user.

This member is deprecated. Use standard java vm proxy values to find the host, port and exclusion list. This call ignores the exclusion list.

Java documentation for android.net.Proxy.getPort(android.content.Context).

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