This documentation is archived and is not being maintained.

CookieException Class

The exception that is thrown when an error is made adding a Cookie to a CookieContainer.

For a list of all members of this type, see CookieException Members.


[Visual Basic]
Public Class CookieException
   Inherits FormatException
public class CookieException : FormatException
public __gc class CookieException : public FormatException
class CookieException extends FormatException

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


This exception is thrown if an attempt is made to Add a Cookie with length greater than MaxCookieSize to a CookieContainer.


Namespace: System.Net

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

Assembly: System (in System.dll)

See Also

CookieException Members | System.Net Namespace | ISerializable