Share via


Proxy.DefaultPort Property

Definition

Caution

deprecated

Return the default proxy port specified by the carrier.

[System.Obsolete("deprecated")]
public static int DefaultPort { [Android.Runtime.Register("getDefaultPort", "()I", "")] get; }
[<System.Obsolete("deprecated")>]
[<get: Android.Runtime.Register("getDefaultPort", "()I", "")>]
static member DefaultPort : int

Property Value

The port number to be used with the proxy host or -1 if there is no proxy for this carrier.

Attributes

Remarks

Return the default proxy port specified by the carrier.

This member is deprecated. Use standard java vm proxy values to find the host, port and exclusion list. This call ignores the exclusion list and no longer reports only mobile-data apn-based proxy values.

Java documentation for android.net.Proxy.getDefaultPort().

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