IStream.CopyTo Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Copies a specified number of bytes from the current seek pointer in the stream to the current seek pointer in another stream.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- pstm
- Type: System.Runtime.InteropServices.ComTypes.IStream
A reference to the destination stream.
- cb
- Type: System.Int64
The number of bytes to copy from the source stream.
- pcbRead
- Type: System.IntPtr
On successful return, contains the actual number of bytes read from the source.
- pcbWritten
- Type: System.IntPtr
On successful return, contains the actual number of bytes written to the destination.
Show: