Export (0) Print
Expand All
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

BufferManager.TakeBuffer Method

July 28, 2014

Gets a buffer of at least the specified size from the pool.

Namespace:  System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public abstract byte[] TakeBuffer(
	int bufferSize


Type: System.Int32
The size, in bytes, of the requested buffer.

Return Value

Type: System.Byte []
A byte array that is the requested size of the buffer.


bufferSize cannot be less than zero.

If successful, the system returns a byte array buffer of at least the requested size.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2014 Microsoft