TakeBuffer Method
Collapse the table of content
Expand the table of content

BufferManager.TakeBuffer Method

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

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

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

'Declaration
Public MustOverride Function TakeBuffer ( _
	bufferSize As Integer _
) As Byte()

Parameters

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.

ExceptionCondition
ArgumentOutOfRangeException

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

Show:
© 2017 Microsoft