Export (0) Print
Expand All

Cookie.Port Property

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\"";

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft