ComponentOne Bitmap for WinForms
C1.Win.C1DX.4.8 Assembly / C1.Util.DX.Storage Namespace / ComStream Class / CopyTo Method
The stream destination.
The number of bytes to copy.
The bytes written.

In This Topic
    CopyTo Method (ComStream)
    In This Topic
    Copies a specified number of bytes from the current seek pointer in the stream to the current seek pointer in another stream.
    Syntax
    'Declaration
     
    Public Function CopyTo( _
       ByVal streamDest As IStream, _
       ByVal numberOfBytesToCopy As System.Long, _
       ByRef bytesWritten As System.Long _
    ) As System.Long
    public System.long CopyTo( 
       IStream streamDest,
       System.long numberOfBytesToCopy,
       out System.long bytesWritten
    )

    Parameters

    streamDest
    The stream destination.
    numberOfBytesToCopy
    The number of bytes to copy.
    bytesWritten
    The bytes written.

    Return Value

    The number of bytes read from this instance
    See Also