Port Property

Cookie.Port Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets a list of Transmission Control Protocol (TCP) ports to which this cookie applies.

Namespace:  System.Net
Assembly:  System.Net (in System.Net.dll)

public string Port { get; set; }

Property Value

Type: System.String
A comma delimited list of TCP ports to which this cookie applies.

ExceptionCondition
CookieException

Port is set to an incorrect format.

The Port property uses the following format:

myCookie.Port = "\"port1\",\"port2\"";

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft