CopyTo Method
Collapse the table of content
Expand the table of content

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.

Namespace:  System.Runtime.InteropServices.ComTypes
Assembly:  mscorlib (in mscorlib.dll)

void CopyTo(
	IStream pstm,
	long cb,
	IntPtr pcbRead,
	IntPtr pcbWritten
)

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.

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

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft