UCOMIStream.CopyTo(UCOMIStream, Int64, IntPtr, IntPtr) 方法

定義

從資料流中的目前搜尋指標複製指定數目的位元組到另一個資料流中的目前搜尋指標。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)

參數

pstm
UCOMIStream

目的端資料流的參考。Reference to the destination stream.

cb
Int64

要從來源資料流複製的位元組數目。The number of bytes to copy from the source stream.

pcbRead
IntPtr

在成功傳回時,含有從來源讀取的實際位元組數目。On successful return, contains the actual number of bytes read from the source.

pcbWritten
IntPtr

在成功傳回時,含有寫入目的端的實際位元組數目。On successful return, contains the actual number of bytes written to the destination.

備註

如需詳細資訊,請參閱 MSDN library 中的 IStream::CopyTo 的現有檔。For more information, please see the existing documentation for IStream::CopyTo in the MSDN library.

適用於