BasicClientCookie.GetPorts Method

Definition

Gets the port restrictions defined for this cookie.

[Android.Runtime.Register("getPorts", "()[I", "GetGetPortsHandler")]
public virtual int[]? GetPorts();
[<Android.Runtime.Register("getPorts", "()[I", "GetGetPortsHandler")>]
abstract member GetPorts : unit -> int[]
override this.GetPorts : unit -> int[]

Returns

Int32[]

The permitted ports, or null when the cookie has no port restriction.

Implements

Attributes

Remarks

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