This documentation is archived and is not being maintained.

Cookie Constructor ()

.NET Framework 1.1

Initializes a new instance of the Cookie class.

[Visual Basic]
Public Sub New()
public Cookie();
public: Cookie();
public function 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.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Cookie Class | Cookie Members | System.Net Namespace | Cookie Constructor Overload List