Επεξεργασία

Κοινή χρήση μέσω


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

Definition

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

public:
 void CopyTo(System::Runtime::InteropServices::UCOMIStream ^ pstm, long cb, IntPtr pcbRead, IntPtr pcbWritten);
public void CopyTo (System.Runtime.InteropServices.UCOMIStream pstm, long cb, IntPtr pcbRead, IntPtr pcbWritten);
abstract member CopyTo : System.Runtime.InteropServices.UCOMIStream * int64 * nativeint * nativeint -> unit
Public Sub CopyTo (pstm As UCOMIStream, cb As Long, pcbRead As IntPtr, pcbWritten As IntPtr)

Parameters

pstm
UCOMIStream

Reference to the destination stream.

cb
Int64

The number of bytes to copy from the source stream.

pcbRead
IntPtr

nativeint

On successful return, contains the actual number of bytes read from the source.

pcbWritten
IntPtr

nativeint

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.

Applies to