Export (0) Print
Expand All

CookieContainer.MaxCookieSize Property

Represents the maximum allowed length of a Cookie.

Namespace:  System.Net
Assemblies:   System (in System.dll)
  System.Net.Primitives (in System.Net.Primitives.dll)

public int MaxCookieSize { get; set; }

Property Value

Type: System.Int32
The maximum allowed length, in bytes, of a Cookie.

ExceptionCondition
ArgumentOutOfRangeException

MaxCookieSize is less than or equal to zero.

If the new value of MaxCookieSize is less than the current value, any Cookie with a length that exceeds the new value will be truncated.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Portable Class Library

Supported in: Portable Class Library

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
Show:
© 2015 Microsoft