Gemstone Common Library
Show/Hide TOC

# BlockAllocatedMemoryStreamWriteTo Method

Writes the entire stream into destination, regardless of Position, which remains unchanged.

## Definition

Namespace: Gemstone.IO
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.159 -- Release Build+a612c25bc0e1c87e5766544ec4650d2ebcfddcf4
C#
View Source Request Example

    public void WriteTo(
    	Stream destination
    )

VB
View Source Request Example

    Public Sub WriteTo (
    	destination As Stream
    )

C++
View Source Request Example

    public:
    void WriteTo(
    	Stream^ destination
    )

JavaScript
View Source Request Example

    function WriteTo(destination);

#### Parameters

destination Stream
  The stream onto which to write the current contents.

## Exceptions

ObjectDisposedException | The stream is closed.

## See Also

#### Reference

BlockAllocatedMemoryStream Class
Gemstone.IO Namespace