Export (0) Print
Expand All

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.

System.Object
   System.Exception
      System.SystemException
         System.FormatException
            System.Net.CookieException

[Visual Basic]
<Serializable>
Public Class CookieException
   Inherits FormatException
[C#]
[Serializable]
public class CookieException : FormatException
[C++]
[Serializable]
public __gc class CookieException : public FormatException
[JScript]
public
   Serializable
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.

Remarks

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

Requirements

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

Show:
© 2014 Microsoft