IBufferManager.ReturnBuffer Method

Windows Runtime Azure Storage Client Library

Returns a buffer to the pool.

Namespace: Microsoft.WindowsAzure.Storage
Assembly: Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)

Usage

Visual Basic
Dim instance As IBufferManager
Dim buffer As Byte()

instance.ReturnBuffer(buffer)

Syntax

Visual Basic
Sub ReturnBuffer ( _
	buffer As Byte() _
)
C#
void ReturnBuffer (
	byte[] buffer
)
C++
void ReturnBuffer (
	array<unsigned char>^ buffer
)
J#
void ReturnBuffer (
	byte[] buffer
)
JScript
function ReturnBuffer (
	buffer : byte[]
)

Parameters

buffer

A byte array specifying the buffer to return to the pool.

Exceptions

Exception typeCondition
ArgumentNullException

Buffer reference cannot be null.

ArgumentException

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

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

Target Platforms

See Also