Επεξεργασία

Κοινή χρήση μέσω


ChunkedCookieHandlerElement.ChunkSize Property

Definition

Gets or sets the chunk size for the handler.

public:
 property int ChunkSize { int get(); void set(int value); };
[System.Configuration.ConfigurationProperty("chunkSize", DefaultValue=2000, IsRequired=false)]
[System.Configuration.IntegerValidator(MinValue=1000)]
public int ChunkSize { get; set; }
[<System.Configuration.ConfigurationProperty("chunkSize", DefaultValue=2000, IsRequired=false)>]
[<System.Configuration.IntegerValidator(MinValue=1000)>]
member this.ChunkSize : int with get, set
Public Property ChunkSize As Integer

Property Value

The chunk size, in bytes. The default is DefaultChunkSize. Do not set a value below the minimum chunk size defined by MinimumChunkSize.

Attributes

Remarks

You must be careful when adjusting the chunk size. Web browsers have different limits on the size of cookies and the number of cookies allowable in total and per domain. For example, the original Netscape specification specified these limits: 300 cookies total, 4096 bytes per cookie header (including metadata, not just the cookie value), and 20 cookies per domain. For more information, see ChunkedCookieHandler.

Represents the chunkSize attribute of the <chunkedCookieHandler> element.

Applies to

See also