Export (0) Print
Expand All

Cookie Constructor

Initializes a new instance of the Cookie class.

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

'Declaration
Public Sub New

The default constructor initializes all fields to their default values, using empty strings ("") for name, value, path, and domain. Note that at least the Name property must be initialized before using an instance of the Cookie class.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Portable Class Library

Supported in: Portable Class Library

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
Show:
© 2015 Microsoft