ChunkedCookieHandlerElement.ChunkSize Propiedad

Definición

Obtiene o establece el tamaño del fragmento del controlador.

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

Valor de propiedad

Tamaño del fragmento, en bytes. De manera predeterminada, es DefaultChunkSize. No establezca un valor inferior al tamaño mínimo de fragmento definido por MinimumChunkSize.

Atributos

Comentarios

Debe tener cuidado al ajustar el tamaño del fragmento. Los navegadores web tienen límites diferentes en cuanto al tamaño de las cookies y el número de cookies permitidas en total y por dominio. Por ejemplo, la especificación original de Netscape especificó estos límites: 300 cookies totales, 4096 bytes por encabezado de cookie (incluidos los metadatos, no solo el valor de la cookie) y 20 cookies por dominio. Para obtener más información, vea ChunkedCookieHandler.

Representa el chunkSize atributo del <elemento chunkedCookieHandler> .

Se aplica a

Consulte también