ComponentOne Bitmap for WPF
C1.WPF.DX.4.5.2 Assembly / C1.Util.DX.Storage Namespace / IStream Interface / CopyTo Method
The stream destination.
The number of bytes to copy.
The number of bytes written.

In This Topic
    CopyTo Method (IStream)
    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
     
    Function CopyTo( _
       ByVal streamDest As IStream, _
       ByVal numberOfBytesToCopy As Long, _
       ByRef bytesWritten As Long _
    ) As Long
    long CopyTo( 
       IStream streamDest,
       long numberOfBytesToCopy,
       out long bytesWritten
    )

    Parameters

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

    Return Value

    The number of bytes read
    See Also