Cookie Constructor

Cookie Constructor ()


Initializes a new instance of the Cookie class.

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

new : unit -> Cookie

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.

Universal Windows Platform
Available since 4.5
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Available since 3.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
© 2015 Microsoft