Udostępnij za pośrednictwem


BufferManager.ReturnBuffer Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Returns a buffer to the pool.

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

Syntax

'Declaration
Public MustOverride Sub ReturnBuffer ( _
    buffer As Byte() _
)
public abstract void ReturnBuffer(
    byte[] buffer
)

Parameters

  • buffer
    Type: array<System.Byte[]
    A reference to the buffer being returned.

Exceptions

Exception Condition
ArgumentNullException

buffer reference cannot be nulla null reference (Nothing in Visual Basic).

ArgumentException

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

Remarks

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

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.