BufferManager.CreateBufferManager Method

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)

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.

ExceptionCondition
InsufficientMemoryException

There was insufficient memory to create the requested buffer pool.

ArgumentOutOfRangeException

maxBufferPoolSize or maxBufferSize was less than zero.

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

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

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

Community Additions

ADD
Show: