CookieContainer.MaxCookieSize 屬性

定義

表示 Cookie 允許的最大長度。

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

屬性值

以位元組為單位表示的 Cookie 允許的最大長度。

例外狀況

MaxCookieSize 小於或等於零。

備註

如果 的新值小於目前的值 MaxCookieSize ,則會截斷長度超過新值的任何 Cookie 值。

適用於

另請參閱