IStream.CopyTo Method (IStream, Int64, IntPtr, IntPtr)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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.

Universal Windows Platform
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Return to top
Show: