Cookie Constructor
Collapse the table of content
Expand the table of content

Cookie Constructor ()

 

Initializes a new instance of the Cookie class.

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

public 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 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 3.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show:
© 2016 Microsoft