BufferManager.CreateBufferManager Method

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

Creates a new BufferManager with a specified maximum buffer pool size and a maximum size for each individual buffer in the pool.

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

Syntax

public static BufferManager CreateBufferManager(
    long maxBufferPoolSize,
    int maxBufferSize
)

Parameters

  • maxBufferPoolSize
    Type: System.Int64
    The maximum size of the pool.
  • maxBufferSize
    Type: System.Int32
    The maximum size of an individual buffer.

Return Value

Type: System.ServiceModel.Channels.BufferManager
Returns a BufferManager object with the specified parameters.

Exceptions

Exception Condition
InsufficientMemoryException

There was insufficient memory to create the requested buffer pool.

ArgumentOutOfRangeException

maxBufferPoolSize or maxBufferSize was less than zero.

Remarks

This method creates a new buffer pool with as many buffers as can be created.

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.