ReturnBuffer Method
Collapse the table of content
Expand the table of content

BufferManager.ReturnBuffer Method

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

Returns a buffer to the pool.

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

'Declaration
Public MustOverride Sub ReturnBuffer ( _
	buffer As Byte() _
)

Parameters

buffer
Type: System.Byte ()
A reference to the buffer being returned.

ExceptionCondition
ArgumentNullException

buffer reference cannot be Nothing.

ArgumentException

Length of buffer does not match the pool's buffer length property.

The buffer is returned to the pool and is available for re-use.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft