BufferManager.CreateBufferManager Method (Int64, Int32)

 

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.

Exception Condition
InsufficientMemoryException
System_CAPS_noteNote

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.

ArgumentOutOfRangeException

maxBufferPoolSize or maxBufferSize was less than zero.

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

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: