CookieContainer.MaxCookieSize CookieContainer.MaxCookieSize CookieContainer.MaxCookieSize CookieContainer.MaxCookieSize Property

定義

表示 Cookie 允許的最大長度。Represents the maximum allowed length of a Cookie.

public:
 property int MaxCookieSize { int get(); };
public int MaxCookieSize { get; }
member this.MaxCookieSize : int
Public ReadOnly Property MaxCookieSize As Integer

屬性值

以位元組為單位表示的 Cookie 允許的最大長度。The maximum allowed length, in bytes, of a Cookie.

例外狀況

MaxCookieSize 小於或等於零。MaxCookieSize is less than or equal to zero.

備註

如果的新值MaxCookieSize小於目前的值,則任何Cookie長度超過新值的都將會被截斷。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.

適用於

另請參閱