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.165 -- Release Build+e14d337b173ad33e50be6747ce5b02f477f99484
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