CookieContainer.MaxCookieSize 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示允许的最大长度 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 , Cookie 将截断超过新值的长度的任何值。