BufferSize Property
Collapse the table of content
Expand the table of content

MessageBuffer.BufferSize Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets the approximate number of bytes accessed by this MessageBuffer.

Namespace:  System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public abstract int BufferSize { get; }

Property Value

Type: System.Int32
The approximate number of bytes accessed by this MessageBuffer.

You can control the maximum size of the buffer by setting BufferSize to the maximum number of bytes desired. This number does not necessarily cover any transient allocations related to building the buffer or properties attached to the message. It is not related to the actual size of the message when serialized.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft