Windows apps
Collapse the table of content
Expand the table of content
Information
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::ReturnBuffer Method (array<Byte>^)

 

Returns a buffer to the pool.

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

public:
virtual void ReturnBuffer(
	array<unsigned char>^ buffer
) abstract

Parameters

buffer
Type: array<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:
© 2017 Microsoft