संपादित करें

इसके माध्यम से साझा किया गया


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

The maximum size of the pool.

maxBufferSize
Int32

The maximum size of an individual buffer.

Returns

Returns a BufferManager object with the specified parameters.

Exceptions

There was insufficient memory to create the requested buffer pool.

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

maxBufferPoolSize or maxBufferSize was less than zero.

Remarks

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

Applies to