BufferManager.ReturnBuffer Method (Byte[])

 

Returns a buffer to the pool.

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

public abstract void ReturnBuffer(
	byte[] buffer
)

Parameters

buffer
Type: System.Byte[]

A reference to the buffer being returned.

Exception Condition
ArgumentNullException

buffer reference cannot be null.

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.

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: