Chỉnh sửa

CookieContainer.MaxCookieSize Property

Definition

Represents the maximum allowed length of a Cookie.

public:
 property int MaxCookieSize { int get(); void set(int value); };
public int MaxCookieSize { get; set; }
member this.MaxCookieSize : int with get, set
Public Property MaxCookieSize As Integer

Property Value

The maximum allowed length, in bytes, of a Cookie.

Exceptions

The size to set is less than or equal to zero.

Remarks

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.

Applies to

See also