BufferManager.CreateBufferManager(Int64, Int32) BufferManager.CreateBufferManager(Int64, Int32) BufferManager.CreateBufferManager(Int64, Int32) BufferManager.CreateBufferManager(Int64, Int32) Method

Definition

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

public:
 static System::ServiceModel::Channels::BufferManager ^ CreateBufferManager(long maxBufferPoolSize, int maxBufferSize);
public static System.ServiceModel.Channels.BufferManager CreateBufferManager (long maxBufferPoolSize, int maxBufferSize);
static member CreateBufferManager : int64 * int -> System.ServiceModel.Channels.BufferManager
Public Shared Function CreateBufferManager (maxBufferPoolSize As Long, maxBufferSize As Integer) As BufferManager

Parameters

maxBufferPoolSize
Int64 Int64 Int64 Int64

The maximum size of the pool.

maxBufferSize
Int32 Int32 Int32 Int32

The maximum size of an individual buffer.

Returns

Returns a BufferManager object with the specified parameters.

Exceptions

In the .NET for Windows Store apps or the Portable Class Library, catch the base class exception, OutOfMemoryException, instead.

There was insufficient memory to create the requested buffer pool.

Remarks

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

Applies to