UCOMIStream.Read(Byte[], Int32, IntPtr) 方法

定義

在目前搜尋指標位置開始,從資料流物件讀取指定數目的位元組到記憶體中。Reads a specified number of bytes from the stream object into memory starting at the current seek pointer.

public:
 void Read(cli::array <System::Byte> ^ pv, int cb, IntPtr pcbRead);
public void Read (byte[] pv, int cb, IntPtr pcbRead);
abstract member Read : byte[] * int * nativeint -> unit
Public Sub Read (pv As Byte(), cb As Integer, pcbRead As IntPtr)

參數

pv
Byte[]

在成功傳回時,含有從資料流讀取的資料。On successful return, contains the data read frtom the stream.

cb
Int32

要從資料流物件讀取的位元組數目。The number of bytes to read from the stream object.

pcbRead
IntPtr

ULONG 變數的指標,其接收從資料流物件讀取的實際位元組數目。Pointer to a ULONG variable that receives the actual number of bytes read from the stream object.

備註

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

適用於