ComponentOne Bitmap for WPF
C1.WPF.DX.4.6.2 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 Long, _
       ByRef bytesWritten As Long _
    ) As Long
    public long CopyTo( 
       IStream streamDest,
       long numberOfBytesToCopy,
       out 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