Condividi tramite


MessageBuffer.BufferSize Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets the approximate number of bytes accessed by this MessageBuffer.

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

Syntax

'Declaration
Public MustOverride ReadOnly Property BufferSize As Integer
public abstract int BufferSize { get; }

Property Value

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

Remarks

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.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.