System.Runtime.InteropServices.UCOMIStream.CopyTo Method

Copies a specified number of bytes from the current seek pointer in the stream to the current seek pointer in another stream.

Syntax

public void CopyTo (UCOMIStream pstm, long cb, IntPtr pcbRead, IntPtr pcbWritten)

Parameters

pstm
Reference to the destination stream.
cb
The number of bytes to copy from the source stream.
pcbRead
On successful return, contains the actual number of bytes read from the source.
pcbWritten
On successful return, contains the actual number of bytes written to the destination.

Remarks

For more information, please see the existing documentation for IStream::CopyTo in the MSDN library.

Requirements

Namespace: System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0