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

定義

在目前搜尋指標位置開始,將指定數目的位元組寫入資料流物件中。Writes a specified number of bytes into the stream object starting at the current seek pointer.

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

參數

pv
Byte[]

要將這個資料流寫入的緩衝區。Buffer to write this stream to.

cb
Int32

要寫入資料流的位元組數目。The number of bytes to write into the stream.

pcbWritten
IntPtr

在成功傳回時,含有寫入資料流物件的實際位元組數目。On successful return, contains the actual number of bytes written to the stream object. 呼叫端可將這個指標設定為 null,在這種情況下,這個方法不會提供寫入的實際位元組數目。The caller can set this pointer to null, in which case this method does not provide the actual number of bytes written.

備註

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

適用於