CreateBufferManager Method
Collapse the table of content
Expand the table of content

BufferManager.CreateBufferManager Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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
ArgumentOutOfRangeException

maxBufferPoolSize or maxBufferSize was less than zero.

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

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft