Language

ISetCookie2.SetPorts(Int32[]) Method

Definition

Sets the Port attribute.

[Android.Runtime.Register("setPorts", "([I)V", "GetSetPorts_arrayIHandler:Org.Apache.Http.Cookies.ISetCookie2Invoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetPorts(int[]? ports);
[<Android.Runtime.Register("setPorts", "([I)V", "GetSetPorts_arrayIHandler:Org.Apache.Http.Cookies.ISetCookie2Invoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetPorts : int[] -> unit

Parameters

ports
Int32[]

The port numbers stored for the cookie, or null to clear the port array. An empty array contains no allowed ports; it does not mean all ports. The selected cookie specification determines how the Port attribute is matched.

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