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

MessageBuffer.BufferSize Property

 

Gets the approximate number of bytes consumed 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 consumed 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.

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show:
© 2016 Microsoft