Partager via


FramingWriter.ChunkSize Property

Gets or sets the size of the chunks in a framed record.

Namespace: Microsoft.Web.Services3.Messaging.Framing
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)

Usage

'Usage
Dim framingWriter1 As FramingWriter

Dim returnValue As Integer
returnValue = framingWriter1.ChunkSize

Dim sampleValue As Integer
framingWriter1.ChunkSize = sampleValue

Syntax

'Declaration
Public Property ChunkSize() As Integer
public int ChunkSize {get; set;}
public:
property int ChunkSize {
    int get();
    void set(int value);
}
public int get_ChunkSize();
public void set_ChunkSize(int);
public function get ChunkSize() : int;
public function set ChunkSize(int);

Exceptions

Exception type Condition
ArgumentException

ChunkSize is set to a nonpositive value.

Remarks

ChunkSize is used to determine if chunking is required. The default ChunkSize is int.MaxValue (2 Gigabytes). The usefulness of chunking and attachments is limited by the nature of the HTTP protocol that requires that the entire request be sent as a single message. Chunking in this implementation provides a way to set the maximum record size. But as the entire framed message gets buffered in memory, in practice the maximum size of a message is governed by the size of the memory available.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server

Target Platforms

See Also

Reference

FramingWriter Class
FramingWriter Members
Microsoft.Web.Services3.Messaging.Framing Namespace